mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54: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()
|
self.start_hold_timer()
|
||||||
|
|
||||||
def handle_touchstart(self, ev):
|
def handle_touchstart(self, ev):
|
||||||
if ev.cancelable:
|
if jstype(ev.cancelable) is not 'boolean' or ev.cancelable:
|
||||||
ev.preventDefault()
|
ev.preventDefault()
|
||||||
ev.stopPropagation()
|
ev.stopPropagation()
|
||||||
self.prune_expired_touches()
|
self.prune_expired_touches()
|
||||||
@ -195,7 +195,7 @@ class TouchHandler:
|
|||||||
self.start_hold_timer()
|
self.start_hold_timer()
|
||||||
|
|
||||||
def handle_touchmove(self, ev):
|
def handle_touchmove(self, ev):
|
||||||
if ev.cancelable:
|
if jstype(ev.cancelable) is not 'boolean' or ev.cancelable:
|
||||||
ev.preventDefault()
|
ev.preventDefault()
|
||||||
ev.stopPropagation()
|
ev.stopPropagation()
|
||||||
for touch in ev.changedTouches:
|
for touch in ev.changedTouches:
|
||||||
@ -205,7 +205,7 @@ class TouchHandler:
|
|||||||
self.dispatch_gesture()
|
self.dispatch_gesture()
|
||||||
|
|
||||||
def handle_touchend(self, ev):
|
def handle_touchend(self, ev):
|
||||||
if ev.cancelable:
|
if jstype(ev.cancelable) is not 'boolean' or ev.cancelable:
|
||||||
ev.preventDefault()
|
ev.preventDefault()
|
||||||
ev.stopPropagation()
|
ev.stopPropagation()
|
||||||
for touch in ev.changedTouches:
|
for touch in ev.changedTouches:
|
||||||
@ -219,7 +219,7 @@ class TouchHandler:
|
|||||||
self.reset_handlers()
|
self.reset_handlers()
|
||||||
|
|
||||||
def handle_touchcancel(self, ev):
|
def handle_touchcancel(self, ev):
|
||||||
if ev.cancelable:
|
if jstype(ev.cancelable) is not 'boolean' or ev.cancelable:
|
||||||
ev.preventDefault()
|
ev.preventDefault()
|
||||||
ev.stopPropagation()
|
ev.stopPropagation()
|
||||||
for touch in ev.changedTouches:
|
for touch in ev.changedTouches:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user