From e542f381102785aa564f13162e58481d153aa1fc Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Thu, 24 Oct 2019 21:39:23 -0400 Subject: Check pendingLookup earlier --- ext/fg/js/frontend.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext/fg') 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) ) { -- cgit v1.2.3