From e609b3b7dce45917d3dc1cc9015943645f1a9306 Mon Sep 17 00:00:00 2001 From: tamaina Date: Mon, 17 Jul 2023 08:06:54 +0000 Subject: [PATCH] test --- packages/frontend/src/components/MkPagination.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/frontend/src/components/MkPagination.vue b/packages/frontend/src/components/MkPagination.vue index f94392ef1a..51e4ca6e06 100644 --- a/packages/frontend/src/components/MkPagination.vue +++ b/packages/frontend/src/components/MkPagination.vue @@ -184,9 +184,8 @@ watch([() => props.pagination.reversed, $$(scrollableElement)], () => { weakBacked = entries[0].isIntersecting; }, { root: scrollableElement, - rootMargin: props.pagination.reversed ? '-100% 0px 100% 0px' : '100% 0px -100% 0px', - // 12%以上先頭にいる場合はweakBackedをtrueにしたい - threshold: [0, 0.02, 0.04, 0.06, 0.08, 0.10, 0.12], + rootMargin: props.pagination.reversed ? '-110% 0px 110% 0px' : '110% 0px -110% 0px', + threshold: [0], }); console.log('new scrollObserver', scrollObserver); }, { immediate: true });