From 2bab61cd431e0bcc8fcd28227647e7b4f7c7e052 Mon Sep 17 00:00:00 2001 From: Abdullah-dev0 Date: Thu, 14 Aug 2025 21:49:59 +0500 Subject: [PATCH] refactor: remove commented code for auto scroll in ChatComponent --- src/components/chat/ChatComponent.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/chat/ChatComponent.tsx b/src/components/chat/ChatComponent.tsx index 2d86ccb..f395035 100644 --- a/src/components/chat/ChatComponent.tsx +++ b/src/components/chat/ChatComponent.tsx @@ -72,7 +72,6 @@ const ChatComponent = ({ file }: { file: File }) => { .reverse(); }, [historyData]); - // Auto scroll when live messages change useEffect(() => { const timer = setTimeout(() => { messagesEndRef.current?.scrollIntoView({ behavior: 'smooth' });