Skip to content

Commit

Permalink
Try fix in futurepress#1308
Browse files Browse the repository at this point in the history
  • Loading branch information
ctlnwng committed Jul 13, 2023
1 parent bffcd4f commit ed61f9c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/managers/default/index.js
Expand Up @@ -492,10 +492,10 @@ class DefaultViewManager {
} else if (this.isPaginated && this.settings.axis === "vertical") {

this.scrollTop = this.container.scrollTop;

let top = this.container.scrollTop + this.container.offsetHeight;

if(top < this.container.scrollHeight) {
const reachedToBottom = Math.abs(this.container.scrollHeight - this.container.clientHeight - this.container.scrollTop) < 1;
if(!reachedToBottom) {
this.scrollBy(0, this.layout.height, true);
} else {
next = this.views.last().section.next();
Expand Down

0 comments on commit ed61f9c

Please sign in to comment.