aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed/js/text-scanner.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-04-12 11:42:56 -0400
committerGitHub <noreply@github.com>2020-04-12 11:42:56 -0400
commit778d49f86b9652ac03d550dd7c26ffdba5b49047 (patch)
treecc907f4e81264c99e12149568a4ed8d8097dd48c /ext/mixed/js/text-scanner.js
parent649adb13d8e1a775bb54e28b12401f7f95c5ab8d (diff)
parentf88d4b02e4457e321a0bce1a4b67d0c355f7e1a3 (diff)
Merge pull request #443 from toasted-nutbread/fix-get-selection
Fix getSelection not working in QueryParser
Diffstat (limited to 'ext/mixed/js/text-scanner.js')
-rw-r--r--ext/mixed/js/text-scanner.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mixed/js/text-scanner.js b/ext/mixed/js/text-scanner.js
index a1d96320..e6b9a2e6 100644
--- a/ext/mixed/js/text-scanner.js
+++ b/ext/mixed/js/text-scanner.js
@@ -133,7 +133,7 @@ class TextScanner {
this.preventNextClick = false;
const primaryTouch = e.changedTouches[0];
- if (DOM.isPointInSelection(primaryTouch.clientX, primaryTouch.clientY, this.node.getSelection())) {
+ if (DOM.isPointInSelection(primaryTouch.clientX, primaryTouch.clientY, window.getSelection())) {
return;
}