summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/mixed/js/text-scanner.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/mixed/js/text-scanner.js b/ext/mixed/js/text-scanner.js
index a789c84c..dedd29b7 100644
--- a/ext/mixed/js/text-scanner.js
+++ b/ext/mixed/js/text-scanner.js
@@ -85,7 +85,14 @@ class TextScanner extends EventDispatcher {
setEnabled(enabled) {
this._eventListeners.removeAllEventListeners();
+ this._primaryTouchIdentifier = null;
+ this._preventNextContextMenu = false;
+ this._preventNextMouseDown = false;
+ this._preventNextClick = false;
+ this._preventScroll = false;
+
this._enabled = enabled;
+
if (this._enabled && this._isPrepared) {
this._hookEvents();
} else {