mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-14 02:20:12 +01:00
[FEAT] Improve autoscroll during message streaming (#1139)
emulate chatgpt autoscroll to not always force autoscroll when streaming responses
This commit is contained in:
parent
897e168fd1
commit
b50f1e7479
@ -14,7 +14,7 @@ export default function ChatHistory({ history = [], workspace, sendCommand }) {
|
||||
const chatHistoryRef = useRef(null);
|
||||
|
||||
useEffect(() => {
|
||||
scrollToBottom();
|
||||
if (isAtBottom) scrollToBottom();
|
||||
}, [history]);
|
||||
|
||||
const handleScroll = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user