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) {
21662166 pendingUserScrollUpIntentRef.current = false;
21672167 } else if (shouldAutoScrollRef.current && pendingUserScrollUpIntentRef.current) {
21682168 const scrolledUp = currentScrollTop < lastKnownScrollTopRef.current - 1;
2169 if (scrolledUp) {
2169 if (scrolledUp && !isNearBottom) {
21702170 shouldAutoScrollRef.current = false;
21712171 }
21722172 pendingUserScrollUpIntentRef.current = false;
21732173 } else if (shouldAutoScrollRef.current && isPointerScrollActiveRef.current) {
21742174 const scrolledUp = currentScrollTop < lastKnownScrollTopRef.current - 1;
2175 if (scrolledUp) {
2175 if (scrolledUp && !isNearBottom) {
21762176 shouldAutoScrollRef.current = false;
21772177 }
21782178 } else if (shouldAutoScrollRef.current && !isNearBottom) {