@devries-cameron20 / t3code Mirror · read-only / commits / 085340588a
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 25, 06:15 UTC

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

Vakhtang Vakhtangishvili committed Apr 3, 2026 at 03:04 UTC 085340588ac87d14e8cad7c5a8bd620e0c8826da
1 file changed +2 -2
apps/web/src/components/ChatView.tsx
+2 -2
@@ -2166,13 +2166,13 @@ export default function ChatView({ threadId }: ChatViewProps) {
2166 pendingUserScrollUpIntentRef.current = false;
2167 } else if (shouldAutoScrollRef.current && pendingUserScrollUpIntentRef.current) {
2168 const scrolledUp = currentScrollTop < lastKnownScrollTopRef.current - 1;
2169 - if (scrolledUp) {
2169 + if (scrolledUp && !isNearBottom) {
2170 shouldAutoScrollRef.current = false;
2171 }
2172 pendingUserScrollUpIntentRef.current = false;
2173 } else if (shouldAutoScrollRef.current && isPointerScrollActiveRef.current) {
2174 const scrolledUp = currentScrollTop < lastKnownScrollTopRef.current - 1;
2175 - if (scrolledUp) {
2175 + if (scrolledUp && !isNearBottom) {
2176 shouldAutoScrollRef.current = false;
2177 }
2178 } else if (shouldAutoScrollRef.current && !isNearBottom) {