From 68d647d6b88901a5b94a7fbbfa71a2d72ca6f3cd Mon Sep 17 00:00:00 2001 From: tamaina Date: Thu, 13 Jul 2023 05:48:18 +0000 Subject: [PATCH] ? --- packages/frontend/src/components/MkPagination.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/frontend/src/components/MkPagination.vue b/packages/frontend/src/components/MkPagination.vue index af880a3e05..a04a664b7a 100644 --- a/packages/frontend/src/components/MkPagination.vue +++ b/packages/frontend/src/components/MkPagination.vue @@ -233,6 +233,8 @@ watch([$$(weakBacked), $$(contentEl)], () => { function adjustScroll(fn: () => void): Promise { const oldHeight = scrollableElement ? scrollableElement.scrollHeight : getBodyScrollHeight(); const oldScroll = scrollableElement ? scrollableElement.scrollTop : window.scrollY; + // スクロールをやめさせる + scroll(scrollableElement, { top: oldScroll, behavior: 'instant' }); fn(); return nextTick(() => {