Skip to content

Commit

Permalink
Deselect text and annotations when enabling an annotation tool
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtcode committed Nov 2, 2023
1 parent 439aacd commit a05ed9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/common/reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,9 @@ class Reader {
tool[key] = params[key];
}
this._updateState({ tool });
if (!['pointer', 'hand'].includes(tool.type)) {
this.setSelectedAnnotations([]);
}
}

toggleTool(type) {
Expand Down

0 comments on commit a05ed9f

Please sign in to comment.