From d73ea541bf353a0362ba80352a2ea7f4118f08d2 Mon Sep 17 00:00:00 2001 From: tamaina Date: Mon, 17 Jul 2023 16:17:30 +0000 Subject: [PATCH] add a comment --- packages/frontend/src/components/MkPagination.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/frontend/src/components/MkPagination.vue b/packages/frontend/src/components/MkPagination.vue index d9038665b..4a5fa679d 100644 --- a/packages/frontend/src/components/MkPagination.vue +++ b/packages/frontend/src/components/MkPagination.vue @@ -272,6 +272,7 @@ function adjustScroll(fn: () => void): Promise { return nextTick(() => { try { + // scrollByで移動すればいいように思うがうまくいかない、なぜ?? const top = oldScroll + ((scrollableElement ? scrollableElement.scrollHeight : getBodyScrollHeight()) - oldHeight); scroll(scrollableElement, { top, behavior: 'instant' });