Skip to content

Commit

Permalink
Chore: Allow clicking on other highlights when createHighlightDialog …
Browse files Browse the repository at this point in the history
…is open
  • Loading branch information
pramodsum committed Nov 2, 2018
1 parent 274ecfe commit 286c5ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/doc/DocAnnotator.js
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,8 @@ class DocAnnotator extends Annotator {
// we trigger the create handler instead of the click handler
if ((this.createHighlightDialog && hasMouseMoved) || event.type === 'dblclick') {
this.highlightCreateHandler(event);
} else if (!hasMouseMoved) {
this.clickHandler(event);
}
};

Expand Down

0 comments on commit 286c5ef

Please sign in to comment.