From d56dcbbd964ffbb76a788b4d47a38f88ecd4d7bb Mon Sep 17 00:00:00 2001 From: Eduard Kuzmenko Date: Mon, 4 Apr 2022 16:27:09 +0300 Subject: [PATCH] Fix preserving scroll position on audio toggle --- src/components/chat/bubbles.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/chat/bubbles.ts b/src/components/chat/bubbles.ts index 8bc1d6b1..90d61bff 100644 --- a/src/components/chat/bubbles.ts +++ b/src/components/chat/bubbles.ts @@ -892,7 +892,7 @@ export default class ChatBubbles { let scrolled = 0; let part = 0; let rAF = 0; - let skipNext = true; + // let skipNext = true; const onResizeEnd = () => { const height = container.offsetHeight; @@ -926,10 +926,10 @@ export default class ChatBubbles { }; const processEntries: ResizeObserverCallback = (entries) => { - if(skipNext) { + /* if(skipNext) { skipNext = false; return; - } + } */ if(skip) { setEndRAF(false);