mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Viewer: Fix scrolling by screenfuls not working correctly in flow mode
This commit is contained in:
parent
a1d51ea302
commit
d66ed41ef9
@ -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)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user