diff options
| author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-10-24 21:39:23 -0400 | 
|---|---|---|
| committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-10-28 17:03:42 -0400 | 
| commit | e542f381102785aa564f13162e58481d153aa1fc (patch) | |
| tree | be55ebf24226f980944a02091567f64cf10eb98e /ext | |
| parent | 9703e123bf7467fc990e6d38e59bcc5fd46645b8 (diff) | |
Check pendingLookup earlier
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/fg/js/frontend.js | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js index 8d51c1df..cfeee64f 100644 --- a/ext/fg/js/frontend.js +++ b/ext/fg/js/frontend.js @@ -174,12 +174,13 @@ class Frontend {          this.preventNextMouseDown = false;          this.preventNextClick = false; +        if (this.pendingLookup) { return; } +          const textSourceCurrentPrevious = this.textSourceCurrent !== null ? this.textSourceCurrent.clone() : null;          this.searchAt(primaryTouch.clientX, primaryTouch.clientY, 'touchStart')          .then(() => {              if ( -                this.pendingLookup ||                  this.textSourceCurrent === null ||                  this.textSourceCurrent.equals(textSourceCurrentPrevious)              ) { |