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();