Skip to content

Commit

Permalink
Chore: Remove this.hasTouch check in onSelectionChange()
Browse files Browse the repository at this point in the history
  • Loading branch information
pramodsum committed Jan 25, 2019
1 parent 63b8a58 commit 9671d7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/DocAnnotator.js
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ class DocAnnotator extends Annotator {
this.modeControllers[TYPES.highlight_comment].applyActionToThreads((thread) => thread.reset(), page);
}

this.lastHighlightEvent = this.hasTouch ? get(event, 'targetTouches[0]', event) : event;
this.lastHighlightEvent = get(event, 'targetTouches[0]', event);
this.lastSelection = selection;
}

Expand Down

0 comments on commit 9671d7f

Please sign in to comment.