aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed/js/text-scanner.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-04-10 17:11:41 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-04-10 17:11:41 -0400
commit2c5bf0ed6b2345fb8aa302a38f73cd452df8c254 (patch)
tree23028cc778544fc8ad6be1bf70e9c857b55a756e /ext/mixed/js/text-scanner.js
parentf177e3699ae85bafa3a648f5c03fbb8e303a6be3 (diff)
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 b8156c01..9d8a7f0c 100644
--- a/ext/mixed/js/text-scanner.js
+++ b/ext/mixed/js/text-scanner.js
@@ -134,7 +134,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;
}