From 71a770c24e66e66714e902d41604dd75495d4a41 Mon Sep 17 00:00:00 2001 From: Mckay Wrigley Date: Thu, 23 Mar 2023 08:14:37 -0600 Subject: [PATCH] tweak scroll tolerance --- components/Chat/Chat.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Chat/Chat.tsx b/components/Chat/Chat.tsx index ff2a746..744b71c 100644 --- a/components/Chat/Chat.tsx +++ b/components/Chat/Chat.tsx @@ -36,7 +36,7 @@ export const Chat: FC = ({ conversation, models, messageIsStreaming, mode const handleScroll = () => { if (chatContainerRef.current) { const { scrollTop, scrollHeight, clientHeight } = chatContainerRef.current; - const bottomTolerance = 50; + const bottomTolerance = 30; if (scrollTop + clientHeight < scrollHeight - bottomTolerance) { setAutoScrollEnabled(false);