change to auto scroll

This commit is contained in:
Mckay Wrigley 2023-03-18 22:32:09 -06:00
parent 481c339d1c
commit a387b3d1cd
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ export const Chat: FC<Props> = ({ model, messages, messageIsStreaming, loading,
const messagesEndRef = useRef<HTMLDivElement>(null);
const scrollToBottom = () => {
messagesEndRef.current?.scrollIntoView({ behavior: "smooth" });
messagesEndRef.current?.scrollIntoView({ behavior: "auto" });
};
useEffect(() => {