add a comment

This commit is contained in:
tamaina 2023-07-17 16:17:30 +00:00
parent f7425f5fe9
commit d73ea541bf
1 changed files with 1 additions and 0 deletions

View File

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