Fix swiping up/down in paged mode generating endless chapter changes

This commit is contained in:
Kovid Goyal 2017-05-11 18:53:58 +05:30
parent 0dfe97269c
commit 67f95c3e1d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -525,6 +525,7 @@ def onkeydown(evt):
def handle_gesture(gesture): def handle_gesture(gesture):
if gesture.type is 'swipe': if gesture.type is 'swipe':
if gesture.axis is 'vertical': if gesture.axis is 'vertical':
if not gesture.active:
get_boss().send_message('next_section', forward=gesture.direction is 'up') get_boss().send_message('next_section', forward=gesture.direction is 'up')
else: else:
if not gesture.active or gesture.is_held: if not gesture.active or gesture.is_held: