From 501d6d0cf24d017f75116bdb882b5a89a1142162 Mon Sep 17 00:00:00 2001 From: Morgan Seltzer Date: Thu, 17 Jun 2021 12:42:18 -0500 Subject: [PATCH] Fixed Pageup Occasionally Failing Before, pageup failed when the page margins were greater than half the screen width, because previous_screen_location() went backward by screen_inline, which did not account for the margins but worked most of the time due to later rounding. Now this has been fixed. Signed-off-by: Morgan Seltzer --- src/pyj/read_book/paged_mode.pyj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyj/read_book/paged_mode.pyj b/src/pyj/read_book/paged_mode.pyj index 5438e7449a..81908aa228 100644 --- a/src/pyj/read_book/paged_mode.pyj +++ b/src/pyj/read_book/paged_mode.pyj @@ -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