authorgravatar for 125814234+vaeho@users.noreply.github.comVakhtang Vakhtangishvili <125814234+vaeho@users.noreply.github.com> 2026-04-03 03:04:47+04:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-04-02 23:04:47+00:00
log085340588ac87d14e8cad7c5a8bd620e0c8826da
tree90c897fadac28f08709f00d0490be76ada68e780
parent48481aa9233666ae05a369e0ed7d16e06e024586
signature Signed by PGP key B5690EEEBB952194

Fix scroll to bottom button flickering near bottom of the chat (#1692)


1 files changed, 2 insertions(+), 2 deletions(-)

apps/web/src/components/ChatView.tsx+2-2
...@@ -2166,13 +2166,13 @@ export default function ChatView({ threadId }: ChatViewProps) {...@@ -2166,13 +2166,13 @@ export default function ChatView({ threadId }: ChatViewProps) {
2166 pendingUserScrollUpIntentRef.current = false;2166 pendingUserScrollUpIntentRef.current = false;
2167 } else if (shouldAutoScrollRef.current && pendingUserScrollUpIntentRef.current) {2167 } else if (shouldAutoScrollRef.current && pendingUserScrollUpIntentRef.current) {
2168 const scrolledUp = currentScrollTop < lastKnownScrollTopRef.current - 1;2168 const scrolledUp = currentScrollTop < lastKnownScrollTopRef.current - 1;
2169 if (scrolledUp) {2169 if (scrolledUp && !isNearBottom) {
2170 shouldAutoScrollRef.current = false;2170 shouldAutoScrollRef.current = false;
2171 }2171 }
2172 pendingUserScrollUpIntentRef.current = false;2172 pendingUserScrollUpIntentRef.current = false;
2173 } else if (shouldAutoScrollRef.current && isPointerScrollActiveRef.current) {2173 } else if (shouldAutoScrollRef.current && isPointerScrollActiveRef.current) {
2174 const scrolledUp = currentScrollTop < lastKnownScrollTopRef.current - 1;2174 const scrolledUp = currentScrollTop < lastKnownScrollTopRef.current - 1;
2175 if (scrolledUp) {2175 if (scrolledUp && !isNearBottom) {
2176 shouldAutoScrollRef.current = false;2176 shouldAutoScrollRef.current = false;
2177 }2177 }
2178 } else if (shouldAutoScrollRef.current && !isNearBottom) {2178 } else if (shouldAutoScrollRef.current && !isNearBottom) {