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:
parent
b9407b54e0
commit
c0cb06884f
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user