mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Have a two finger tap also bring up the chrome
This commit is contained in:
parent
698740c4a7
commit
4a12514f0b
@ -250,12 +250,13 @@ class BookTouchHandler(TouchHandler):
|
||||
if gesture.type is 'double-tap':
|
||||
if gesture.active:
|
||||
return
|
||||
gesture.type = 'show-chrome'
|
||||
get_boss().handle_gesture(gesture)
|
||||
|
||||
touch_handler = BookTouchHandler()
|
||||
main_touch_handler = BookTouchHandler()
|
||||
|
||||
def create_handlers():
|
||||
window.addEventListener('touchstart', touch_handler.handle_touchstart, True)
|
||||
window.addEventListener('touchmove', touch_handler.handle_touchmove, True)
|
||||
window.addEventListener('touchend', touch_handler.handle_touchend, True)
|
||||
window.addEventListener('touchcancel', touch_handler.handle_touchcancel, True)
|
||||
window.addEventListener('touchstart', main_touch_handler.handle_touchstart, True)
|
||||
window.addEventListener('touchmove', main_touch_handler.handle_touchmove, True)
|
||||
window.addEventListener('touchend', main_touch_handler.handle_touchend, True)
|
||||
window.addEventListener('touchcancel', main_touch_handler.handle_touchcancel, True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user