add a comment

This commit is contained in:
tamaina 2023-07-17 16:17:30 +00:00
parent f7425f5fe9
commit d73ea541bf

View file

@ -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' });