1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-13 19:55:39 +02:00
This commit is contained in:
tamaina
2023-07-13 05:48:18 +00:00
parent 130ece74f9
commit 68d647d6b8

View File

@@ -233,6 +233,8 @@ watch([$$(weakBacked), $$(contentEl)], () => {
function adjustScroll(fn: () => void): Promise<void> {
const oldHeight = scrollableElement ? scrollableElement.scrollHeight : getBodyScrollHeight();
const oldScroll = scrollableElement ? scrollableElement.scrollTop : window.scrollY;
// スクロールをやめさせる
scroll(scrollableElement, { top: oldScroll, behavior: 'instant' });
fn();
return nextTick(() => {