add a comment
This commit is contained in:
parent
f7425f5fe9
commit
d73ea541bf
1 changed files with 1 additions and 0 deletions
|
@ -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' });
|
||||
|
||||
|
|
Loading…
Reference in a new issue