This commit is contained in:
parent
130ece74f9
commit
68d647d6b8
|
@ -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(() => {
|
||||
|
|
Loading…
Reference in New Issue