mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-02 14:49:16 +02:00
Merge efc4ece965
into f09089cf77
This commit is contained in:
commit
0b06b96b10
1 changed files with 2 additions and 2 deletions
|
@ -493,9 +493,9 @@ class DefaultViewManager {
|
|||
|
||||
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);
|
||||
} else {
|
||||
next = this.views.last().section.next();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue