From 9dba614c1114d70c7dd00b4d2f6a385ef9694b91 Mon Sep 17 00:00:00 2001 From: Alexey Bogomolov Date: Sat, 20 Jan 2024 18:32:19 +0300 Subject: [PATCH] check scroll on hit bottom --- app/components/chat.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/components/chat.tsx b/app/components/chat.tsx index efb7eb69563..1c7a373607b 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -1190,7 +1190,8 @@ function _Chat() { } setHitBottom(isHitBottom); - setAutoScroll(isHitBottom); + let isAutoScrollEnabled: boolean = config.autoScrollMessage; + setAutoScroll(isAutoScrollEnabled); }, [setHitBottom, setAutoScroll, isMobileScreen, msgRenderIndex, setMsgRenderIndex]); // Added setMsgRenderIndex // Use the custom hook to debounce the onChatBodyScroll function