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