diff --git a/client/core/src/components/auto-paging/auto-paging.js b/client/core/src/components/auto-paging/auto-paging.js index 5b8c85ce9..892df0f1a 100644 --- a/client/core/src/components/auto-paging/auto-paging.js +++ b/client/core/src/components/auto-paging/auto-paging.js @@ -43,7 +43,8 @@ class AutoPaging { checkPosition() { let element = this.$element[0].querySelector('vn-spinner'); let position = element.getBoundingClientRect(); - if (this.currentPage < this.numPages && position.y < document.body.offsetHeight + 150 && !this.waitingNewPage) { + let isVisible = position.y < document.body.offsetHeight + 150; + if (this.currentPage < this.numPages && isVisible && !this.waitingNewPage) { this.loadNewPage(); } }