1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-03 14:59:18 +02:00
This commit is contained in:
hitode909 2023-05-16 09:28:27 +00:00 committed by GitHub
commit 0b06b96b10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -493,9 +493,9 @@ class DefaultViewManager {
this.scrollTop = this.container.scrollTop; this.scrollTop = this.container.scrollTop;
let top = this.container.scrollTop + this.container.offsetHeight; const reachedToBottom = Math.abs(this.container.scrollHeight - this.container.clientHeight - this.container.scrollTop) < 1;
if(top < this.container.scrollHeight) { if(!reachedToBottom) {
this.scrollBy(0, this.layout.height, true); this.scrollBy(0, this.layout.height, true);
} else { } else {
next = this.views.last().section.next(); next = this.views.last().section.next();