diff --git a/packages/client/src/components/MkNotes.vue b/packages/client/src/components/MkNotes.vue index d79ccbfa4..76d82bd94 100644 --- a/packages/client/src/components/MkNotes.vue +++ b/packages/client/src/components/MkNotes.vue @@ -66,7 +66,7 @@ function setTimer() { interval.value = setInterval(() => { const viewport = document.documentElement.clientHeight; const left = document.documentElement.scrollHeight - document.documentElement.scrollTop; - if (left > Math.max(viewport * 3, 4000) || document.documentElement.scrollTop - lastFetchScrollTop.value < viewport) return; + if (left > Math.max(viewport * 3, viewport + 4000) || document.documentElement.scrollTop - lastFetchScrollTop.value < viewport) return; pagingComponent.value.prefetchMore(); lastFetchScrollTop.value = document.documentElement.scrollTop; }, 100);