mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-12-16 13:48:33 +08:00
Fix infinity scroll does not load [SCI-10691][10697]
This commit is contained in:
parent
4573fb6e92
commit
5386cb1155
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ export default {
|
|||
handleScroll() {
|
||||
if (this.loading || !this.selected) return;
|
||||
|
||||
if ((window.innerHeight + window.scrollY) >= document.body.offsetHeight) {
|
||||
if ((window.innerHeight + window.scrollY) >= document.body.offsetHeight - 50) {
|
||||
if (this.results.length < this.total) {
|
||||
this.loadData();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue