E-book viewer: Fix scrolling backwards by screen-fulls not working
with very large page margins.
This commit is contained in:
Kovid Goyal 2021-06-18 07:50:31 +05:30
commit 879262929e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -453,7 +453,7 @@ def previous_screen_location():
if is_full_screen_layout: if is_full_screen_layout:
return -1 return -1
cc = current_column_location() cc = current_column_location()
ans = cc - screen_inline ans = cc - cols_per_screen * col_and_gap
if ans < 0: if ans < 0:
# We ignore small scrolls (less than 15px) when going to previous # We ignore small scrolls (less than 15px) when going to previous
# screen # screen