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.
This commit is contained in:
toasted-nutbread 2019-08-09 21:38:52 -04:00
parent e23d4b9a82
commit 70e9f4922b

View File

@ -192,7 +192,7 @@ class Frontend {
}
onTouchMove(e) {
if (!this.scrollPrevent || this.primaryTouchIdentifier === null) {
if (!this.scrollPrevent || !e.cancelable || this.primaryTouchIdentifier === null) {
return;
}