diff --git a/packages/frontend/src/components/MkPagination.vue b/packages/frontend/src/components/MkPagination.vue index 89abf229d..e86760d88 100644 --- a/packages/frontend/src/components/MkPagination.vue +++ b/packages/frontend/src/components/MkPagination.vue @@ -165,8 +165,8 @@ const timerForSetPause = ref(null); //#region scrolling const checkFn = props.pagination.reversed ? isBottomVisible : isTopVisible; const checkTop = (tolerance?: number) => { - if (!contentEl) return; - if (!document.body.contains(contentEl)) return; + if (!contentEl) return true; + if (!document.body.contains(contentEl)) return true; return checkFn(contentEl, tolerance, scrollableElement); }; /**