mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
I hate browsers
This commit is contained in:
parent
bd24c88f8c
commit
ae5dbbe786
@ -180,7 +180,7 @@ class TouchHandler:
|
||||
self.start_hold_timer()
|
||||
|
||||
def handle_touchstart(self, ev):
|
||||
if ev.cancelable:
|
||||
if jstype(ev.cancelable) is not 'boolean' or ev.cancelable:
|
||||
ev.preventDefault()
|
||||
ev.stopPropagation()
|
||||
self.prune_expired_touches()
|
||||
@ -195,7 +195,7 @@ class TouchHandler:
|
||||
self.start_hold_timer()
|
||||
|
||||
def handle_touchmove(self, ev):
|
||||
if ev.cancelable:
|
||||
if jstype(ev.cancelable) is not 'boolean' or ev.cancelable:
|
||||
ev.preventDefault()
|
||||
ev.stopPropagation()
|
||||
for touch in ev.changedTouches:
|
||||
@ -205,7 +205,7 @@ class TouchHandler:
|
||||
self.dispatch_gesture()
|
||||
|
||||
def handle_touchend(self, ev):
|
||||
if ev.cancelable:
|
||||
if jstype(ev.cancelable) is not 'boolean' or ev.cancelable:
|
||||
ev.preventDefault()
|
||||
ev.stopPropagation()
|
||||
for touch in ev.changedTouches:
|
||||
@ -219,7 +219,7 @@ class TouchHandler:
|
||||
self.reset_handlers()
|
||||
|
||||
def handle_touchcancel(self, ev):
|
||||
if ev.cancelable:
|
||||
if jstype(ev.cancelable) is not 'boolean' or ev.cancelable:
|
||||
ev.preventDefault()
|
||||
ev.stopPropagation()
|
||||
for touch in ev.changedTouches:
|
||||
|
Loading…
x
Reference in New Issue
Block a user