From 3c957e61e2a6f78f9a53594ca9de961278e64fa8 Mon Sep 17 00:00:00 2001 From: Christian Aribaud Date: Mon, 17 Apr 2023 18:47:20 +0200 Subject: [PATCH] Fixing bounceback bug --- comic_reader.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comic_reader.js b/comic_reader.js index a4427c6..84a1f9b 100644 --- a/comic_reader.js +++ b/comic_reader.js @@ -221,7 +221,7 @@ function moveReader(to_next, move_page) { IS_PAGE_MODE = true } - else if (CURRENT_PAGE > 1) { + else if (!to_next && CURRENT_PAGE > 1) { moveReaderDisplayToPage(CURRENT_PAGE - 1) IS_PAGE_MODE = true } @@ -266,7 +266,7 @@ function moveReader(to_next, move_page) { IS_PAGE_MODE = false } - else if (CURRENT_ZOOM > 0) { + else if (!to_next && CURRENT_ZOOM > 0) { moveReaderDisplayToZoom(CURRENT_ZOOM - 1) IS_PAGE_MODE = false }