From a3d9aac42acdbc0d7e211f5deb96e59c31f1ada1 Mon Sep 17 00:00:00 2001 From: Kristina Date: Thu, 20 Mar 2025 15:44:57 +0400 Subject: [PATCH] Fix chat unscroll after chat freeze (#8299) --- .../src/components/ReverseChannelScrollView.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/chunter-resources/src/components/ReverseChannelScrollView.svelte b/plugins/chunter-resources/src/components/ReverseChannelScrollView.svelte index 82860a8a67..9518f748dd 100644 --- a/plugins/chunter-resources/src/components/ReverseChannelScrollView.svelte +++ b/plugins/chunter-resources/src/components/ReverseChannelScrollView.svelte @@ -251,8 +251,8 @@ if (topOffset < 0) { scroller?.scrollBy(topOffset) - } else if (topOffset > 0) { - scroller?.scrollBy(topOffset) + } else if (scrollDiv.scrollTop > 0) { + scrollDiv.scroll({ top: 0, behavior: 'instant' }) } }