aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/mixed/js/text-scanner.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/mixed/js/text-scanner.js b/ext/mixed/js/text-scanner.js
index 26c0687b..d2383af4 100644
--- a/ext/mixed/js/text-scanner.js
+++ b/ext/mixed/js/text-scanner.js
@@ -85,6 +85,8 @@ class TextScanner extends EventDispatcher {
}
setEnabled(enabled) {
+ this._enabled = enabled;
+
const value = enabled && this._isPrepared;
if (this._enabledValue === value) { return; }
@@ -95,7 +97,6 @@ class TextScanner extends EventDispatcher {
this._preventNextClick = false;
this._preventScroll = false;
- this._enabled = enabled;
this._enabledValue = value;
if (value) {