From 70e9f4922b1fa99cbb271181fedb661be3da01c4 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 9 Aug 2019 21:38:52 -0400 Subject: [PATCH] Don't process touchmove events if they can't be canceled If the event cannot be canceled, the browser will continue to scroll while looking up results, which makes it very difficult to control where the lookup cursor is. Chrome also logs error messages that this is invalid. --- ext/fg/js/frontend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js index bd652f3b..97849a09 100644 --- a/ext/fg/js/frontend.js +++ b/ext/fg/js/frontend.js @@ -192,7 +192,7 @@ class Frontend { } onTouchMove(e) { - if (!this.scrollPrevent || this.primaryTouchIdentifier === null) { + if (!this.scrollPrevent || !e.cancelable || this.primaryTouchIdentifier === null) { return; }