diff options
| author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-10-24 21:41:13 -0400 | 
|---|---|---|
| committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-10-28 17:03:42 -0400 | 
| commit | c365101ec28be0aa2638325ecfda4abe1474eb0f (patch) | |
| tree | f77b54de062bd5c645d5ad7560f0904c7489f009 /ext/fg/js | |
| parent | e542f381102785aa564f13162e58481d153aa1fc (diff) | |
Reset preventions earlier
Diffstat (limited to 'ext/fg/js')
| -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; } |