Skip to content

Commit

Permalink
fix autoscrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
ericcccsliu committed Mar 30, 2024
1 parent 1895b2e commit 2faa49d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/components/ConversationMessages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ const ConversationMessages: React.FC<ConversationMessagesProps> = ({
}) => {
const messagesEndRef = useRef<HTMLDivElement>(null);

useEffect(() => {
messagesEndRef.current?.scrollIntoView({ behavior: "smooth" });
}, [messages.length]);

useEffect(() => {
const observer = new IntersectionObserver(
([entry]) => {
Expand Down

0 comments on commit 2faa49d

Please sign in to comment.