diff --git a/src/components/room/message/MessageList.tsx b/src/components/room/message/MessageList.tsx index aaaef23..478fc6e 100644 --- a/src/components/room/message/MessageList.tsx +++ b/src/components/room/message/MessageList.tsx @@ -200,7 +200,7 @@ export const MessageList = memo(function MessageList({ const scrollToBottom = useCallback((smooth = true) => { if (rows.length === 0) return; - virtualizer.scrollToIndex(rows.length - 1, { align: 'end', smooth }); + virtualizer.scrollToIndex(rows.length - 1, { align: 'end', behavior: smooth ? 'smooth' : 'auto' }); }, [virtualizer, rows.length]); // Ensure scroll-to-bottom fires after virtualizer measures all rows