add a comment
This commit is contained in:
parent
f7425f5fe9
commit
d73ea541bf
|
@ -272,6 +272,7 @@ function adjustScroll(fn: () => void): Promise<void> {
|
||||||
|
|
||||||
return nextTick(() => {
|
return nextTick(() => {
|
||||||
try {
|
try {
|
||||||
|
// scrollByで移動すればいいように思うがうまくいかない、なぜ??
|
||||||
const top = oldScroll + ((scrollableElement ? scrollableElement.scrollHeight : getBodyScrollHeight()) - oldHeight);
|
const top = oldScroll + ((scrollableElement ? scrollableElement.scrollHeight : getBodyScrollHeight()) - oldHeight);
|
||||||
scroll(scrollableElement, { top, behavior: 'instant' });
|
scroll(scrollableElement, { top, behavior: 'instant' });
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue