renamed action
This commit is contained in:
parent
628dd5a99b
commit
33f7b2d45a
|
@ -43,7 +43,8 @@ class AutoPaging {
|
||||||
checkPosition() {
|
checkPosition() {
|
||||||
let element = this.$element[0].querySelector('vn-spinner');
|
let element = this.$element[0].querySelector('vn-spinner');
|
||||||
let position = element.getBoundingClientRect();
|
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();
|
this.loadNewPage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue