From f30275a975be874f6585b2f12b5785a4d9c3c4db Mon Sep 17 00:00:00 2001 From: tamaina Date: Fri, 14 Jul 2023 13:11:59 +0000 Subject: [PATCH] fix? --- packages/frontend/src/components/MkPagination.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }; /**