From c1bb53c4e3d03549aa1ec47c838bee4434cc12e4 Mon Sep 17 00:00:00 2001 From: Yifei Zhang Date: Wed, 12 Apr 2023 19:48:12 +0800 Subject: [PATCH] Revert "fix: autoscroll conflict" --- app/components/chat.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 03f905ecf..33ac3ac57 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -354,7 +354,6 @@ export function Chat(props: { const [hitBottom, setHitBottom] = useState(false); const onChatBodyScroll = (e: HTMLElement) => { - setAutoScroll(false); const isTouchBottom = e.scrollTop + e.clientHeight >= e.scrollHeight - 20; setHitBottom(isTouchBottom); };