diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/fg/js/frontend.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js index cfeee64f..f788f431 100644 --- a/ext/fg/js/frontend.js +++ b/ext/fg/js/frontend.js @@ -163,16 +163,17 @@ class Frontend { return; } + this.preventScroll = false; + this.preventNextContextMenu = false; + this.preventNextMouseDown = false; + this.preventNextClick = false; + const primaryTouch = e.changedTouches[0]; if (Frontend.selectionContainsPoint(window.getSelection(), primaryTouch.clientX, primaryTouch.clientY)) { return; } this.primaryTouchIdentifier = primaryTouch.identifier; - this.preventScroll = false; - this.preventNextContextMenu = false; - this.preventNextMouseDown = false; - this.preventNextClick = false; if (this.pendingLookup) { return; } |