From 75d4eca7223e546d74708e96026a08c7cd46f7f7 Mon Sep 17 00:00:00 2001 From: Yidadaa Date: Wed, 2 Aug 2023 23:51:01 +0800 Subject: [PATCH] chore: smaller auto scroll interval --- app/components/chat.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/chat.tsx b/app/components/chat.tsx index edd9fcaf..58dc01bd 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -387,7 +387,7 @@ function useScrollToBottom() { if (autoScroll.current) { scrollToBottom(); } - }, 100); + }, 30); return () => clearInterval(intervalId); // eslint-disable-next-line react-hooks/exhaustive-deps }, []);