From c0cb06884fa1a7d53d0432f76057e5783f7d0ed5 Mon Sep 17 00:00:00 2001 From: Kiera Date: Sat, 1 Apr 2023 03:29:57 +0100 Subject: [PATCH] Restoring some arbitary value changes. --- cps/static/js/kthoom.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cps/static/js/kthoom.js b/cps/static/js/kthoom.js index 9b7950c1..e5198584 100644 --- a/cps/static/js/kthoom.js +++ b/cps/static/js/kthoom.js @@ -685,7 +685,7 @@ function init(filename) { $(document).keydown(keyHandler); - $(window).resize(function(event) { + $(window).resize(function() { updateScale(); if (settings.pageDisplay > 1) { scrollCurrentImageIntoView() @@ -820,7 +820,7 @@ function init(filename) { if (scroll > prevScrollPosition) { //Scroll Down if(currentImage + 1 < imageFiles.length) { - if(currentImageOffset(currentImage + 1) <= 0) { + if(currentImageOffset(currentImage + 1) <= 1) { currentImage++; scrollTocToActive(); updateProgress(); @@ -829,7 +829,7 @@ function init(filename) { } else { //Scroll Up if(currentImage - 1 > -1 ) { - if(currentImageOffset(currentImage - 1) > 0) { + if(currentImageOffset(currentImage - 1) >= 0) { currentImage--; scrollTocToActive(); updateProgress();