Viewer: Fix scrolling by screenfuls not working correctly in flow mode

This commit is contained in:
Kovid Goyal 2019-10-15 11:10:59 +05:30
parent a1d51ea302
commit d66ed41ef9
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -204,7 +204,7 @@ class IframeBoss:
def on_next_screen(self, data): def on_next_screen(self, data):
backwards = data.backwards backwards = data.backwards
if current_layout_mode() is 'flow': if current_layout_mode() is 'flow':
flow_scroll_by_page(backwards) flow_scroll_by_page(-1 if backwards else 1)
else: else:
paged_scroll_by_page(backwards, data.all_pages_on_screen) paged_scroll_by_page(backwards, data.all_pages_on_screen)