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