mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-28 08:42:58 +02:00
Fix swiping up/down in paged mode generating endless chapter changes
This commit is contained in:
parent
0dfe97269c
commit
67f95c3e1d
1 changed files with 2 additions and 1 deletions
|
|
@ -525,7 +525,8 @@ def onkeydown(evt):
|
|||
def handle_gesture(gesture):
|
||||
if gesture.type is 'swipe':
|
||||
if gesture.axis is 'vertical':
|
||||
get_boss().send_message('next_section', forward=gesture.direction is 'up')
|
||||
if not gesture.active:
|
||||
get_boss().send_message('next_section', forward=gesture.direction is 'up')
|
||||
else:
|
||||
if not gesture.active or gesture.is_held:
|
||||
scroll_by_page(gesture.direction is 'right', True)
|
||||
|
|
|
|||
Loading…
Reference in a new issue