mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Dont try to cancel non cancelable event
This commit is contained in:
parent
3121517b51
commit
3b924ecb04
@ -213,6 +213,7 @@ class TouchHandler:
|
||||
self.reset_handlers()
|
||||
|
||||
def handle_touchcancel(self, ev):
|
||||
if ev.cancelable:
|
||||
ev.preventDefault(), ev.stopPropagation()
|
||||
for touch in ev.changedTouches:
|
||||
tid = touch_id(touch) # noqa: unused-local
|
||||
|
Loading…
x
Reference in New Issue
Block a user