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:
parent
e23d4b9a82
commit
70e9f4922b
@ -192,7 +192,7 @@ class Frontend {
|
||||
}
|
||||
|
||||
onTouchMove(e) {
|
||||
if (!this.scrollPrevent || this.primaryTouchIdentifier === null) {
|
||||
if (!this.scrollPrevent || !e.cancelable || this.primaryTouchIdentifier === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user