mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 18:53:08 +02:00
???
This commit is contained in:
parent
8213380ded
commit
a26f289dd5
1 changed files with 1 additions and 0 deletions
|
@ -243,6 +243,7 @@ function adjustScroll(fn: () => void): Promise<void> {
|
||||||
scroll(scrollableElement, { top: oldScroll, behavior: 'instant' });
|
scroll(scrollableElement, { top: oldScroll, behavior: 'instant' });
|
||||||
|
|
||||||
fn();
|
fn();
|
||||||
|
|
||||||
return nextTick(() => {
|
return nextTick(() => {
|
||||||
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 a new issue