summaryrefslogtreecommitdiff
path: root/ext/fg/js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-08-09 21:38:52 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-08-09 21:38:52 -0400
commit70e9f4922b1fa99cbb271181fedb661be3da01c4 (patch)
tree5dd3282903132abd6733661d2368c9a544ce26d7 /ext/fg/js
parente23d4b9a82581f3cf1118e31d077fc9cdaff7573 (diff)
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.
Diffstat (limited to 'ext/fg/js')
-rw-r--r--ext/fg/js/frontend.js2
1 files changed, 1 insertions, 1 deletions
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;
}