Restoring some arbitary value changes.

This commit is contained in:
Kiera 2023-04-01 03:29:57 +01:00
parent b9407b54e0
commit c0cb06884f
1 changed files with 3 additions and 3 deletions

View File

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