From c365101ec28be0aa2638325ecfda4abe1474eb0f Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Thu, 24 Oct 2019 21:41:13 -0400 Subject: [PATCH] Reset preventions earlier --- ext/fg/js/frontend.js | 9 +++++---- 1 file 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; }