change to auto scroll
This commit is contained in:
		
							parent
							
								
									481c339d1c
								
							
						
					
					
						commit
						a387b3d1cd
					
				|  | @ -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(() => { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue