1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-07-04 11:02:59 +00:00

Restoring some arbitary value changes.

This commit is contained in:
Kiera 2023-04-01 03:29:57 +01:00
parent b9407b54e0
commit c0cb06884f

View File

@ -685,7 +685,7 @@ function init(filename) {
$(document).keydown(keyHandler); $(document).keydown(keyHandler);
$(window).resize(function(event) { $(window).resize(function() {
updateScale(); updateScale();
if (settings.pageDisplay > 1) { if (settings.pageDisplay > 1) {
scrollCurrentImageIntoView() scrollCurrentImageIntoView()
@ -820,7 +820,7 @@ function init(filename) {
if (scroll > prevScrollPosition) { if (scroll > prevScrollPosition) {
//Scroll Down //Scroll Down
if(currentImage + 1 < imageFiles.length) { if(currentImage + 1 < imageFiles.length) {
if(currentImageOffset(currentImage + 1) <= 0) { if(currentImageOffset(currentImage + 1) <= 1) {
currentImage++; currentImage++;
scrollTocToActive(); scrollTocToActive();
updateProgress(); updateProgress();
@ -829,7 +829,7 @@ function init(filename) {
} else { } else {
//Scroll Up //Scroll Up
if(currentImage - 1 > -1 ) { if(currentImage - 1 > -1 ) {
if(currentImageOffset(currentImage - 1) > 0) { if(currentImageOffset(currentImage - 1) >= 0) {
currentImage--; currentImage--;
scrollTocToActive(); scrollTocToActive();
updateProgress(); updateProgress();