From 4269775665760a514a978cdc6363e8440143bbfe Mon Sep 17 00:00:00 2001 From: betgo Date: Tue, 11 Apr 2023 14:27:34 +0800 Subject: [PATCH] fix: autoscroll conflict --- app/components/chat.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 33ac3ac5770..03f905ecf46 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -354,6 +354,7 @@ 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); };