From 9671d7f0ca3ab4af093a69bcb7bbcc4792381d65 Mon Sep 17 00:00:00 2001 From: Sumedha Pramod Date: Thu, 24 Jan 2019 16:25:51 -0800 Subject: [PATCH] Chore: Remove this.hasTouch check in onSelectionChange() --- src/doc/DocAnnotator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/DocAnnotator.js b/src/doc/DocAnnotator.js index 7859fa044..ecaaf245f 100644 --- a/src/doc/DocAnnotator.js +++ b/src/doc/DocAnnotator.js @@ -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; }