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 @@ def on_scroll_to_anchor(self, data):
def on_next_screen(self, data):
backwards = data.backwards
if current_layout_mode() is 'flow':
flow_scroll_by_page(backwards)
flow_scroll_by_page(-1 if backwards else 1)
else:
paged_scroll_by_page(backwards, data.all_pages_on_screen)