Skip to content
Snippets Groups Projects
Unverified Commit b50f1e74 authored by Sean Hatfield's avatar Sean Hatfield Committed by GitHub
Browse files

[FEAT] Improve autoscroll during message streaming (#1139)

emulate chatgpt autoscroll to not always force autoscroll when streaming responses
parent 897e168f
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ export default function ChatHistory({ history = [], workspace, sendCommand }) {
const chatHistoryRef = useRef(null);
useEffect(() => {
scrollToBottom();
if (isAtBottom) scrollToBottom();
}, [history]);
const handleScroll = () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment