From 8d34b0f454b543be9681f744d33c43c156ecf135 Mon Sep 17 00:00:00 2001 From: Yifei Zhang Date: Sun, 2 Apr 2023 19:20:57 +0000 Subject: [PATCH] chore: fix mobile scroll --- app/components/chat.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 37a597c9..f1ea597d 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -286,6 +286,7 @@ function useScrollToBottom() { const dom = scrollRef.current; if (dom && autoScroll) { setTimeout(() => (dom.scrollTop = dom.scrollHeight), 1); + setAutoScroll(false); } });