1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-13 14:05:35 +02:00
This commit is contained in:
tamaina
2023-07-13 06:10:42 +00:00
parent 8213380ded
commit a26f289dd5

View File

@@ -243,6 +243,7 @@ function adjustScroll(fn: () => void): Promise<void> {
scroll(scrollableElement, { top: oldScroll, behavior: 'instant' });
fn();
return nextTick(() => {
const top = oldScroll + ((scrollableElement ? scrollableElement.scrollHeight : getBodyScrollHeight()) - oldHeight);
scroll(scrollableElement, { top, behavior: 'instant' });