aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed/js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mixed/js')
-rw-r--r--ext/mixed/js/display.js2
-rw-r--r--ext/mixed/js/text-scanner.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js
index ab0674a9..f3b5dd2a 100644
--- a/ext/mixed/js/display.js
+++ b/ext/mixed/js/display.js
@@ -144,7 +144,7 @@ class Display {
try {
e.preventDefault();
- const textSource = docRangeFromPoint(e.clientX, e.clientY, this.options);
+ const textSource = docRangeFromPoint(e.clientX, e.clientY, this.options.scanning.deepDomScan);
if (textSource === null) {
return false;
}
diff --git a/ext/mixed/js/text-scanner.js b/ext/mixed/js/text-scanner.js
index ac5d68d1..9a739c7e 100644
--- a/ext/mixed/js/text-scanner.js
+++ b/ext/mixed/js/text-scanner.js
@@ -297,7 +297,7 @@ class TextScanner {
}
}
- const textSource = docRangeFromPoint(x, y, this.options);
+ const textSource = docRangeFromPoint(x, y, this.options.scanning.deepDomScan);
if (this.textSourceCurrent !== null && this.textSourceCurrent.equals(textSource)) {
return;
}