add a comment

This commit is contained in:
tamaina
2023-07-17 16:17:30 +00:00
parent f7425f5fe9
commit d73ea541bf

View File

@@ -272,6 +272,7 @@ function adjustScroll(fn: () => void): Promise<void> {
return nextTick(() => {
try {
// scrollByで移動すればいいように思うがうまくいかない、なぜ
const top = oldScroll + ((scrollableElement ? scrollableElement.scrollHeight : getBodyScrollHeight()) - oldHeight);
scroll(scrollableElement, { top, behavior: 'instant' });