Fixing bounceback bug

This commit is contained in:
Christian Aribaud 2023-04-17 18:47:20 +02:00
parent e07730b465
commit 3c957e61e2
1 changed files with 2 additions and 2 deletions

View File

@ -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
}