diff --git a/web/app/components/base/chat/chat/index.tsx b/web/app/components/base/chat/chat/index.tsx index f0e7d6626f..3745e03653 100644 --- a/web/app/components/base/chat/chat/index.tsx +++ b/web/app/components/base/chat/chat/index.tsx @@ -186,7 +186,7 @@ const Chat: FC = ({ if (chatContainer) { const setUserScrolled = () => { if (chatContainer) - userScrolledRef.current = chatContainer.scrollHeight - chatContainer.scrollTop >= chatContainer.clientHeight + 300 + userScrolledRef.current = chatContainer.scrollHeight - chatContainer.scrollTop > chatContainer.clientHeight } chatContainer.addEventListener('scroll', setUserScrolled) return () => chatContainer.removeEventListener('scroll', setUserScrolled)