forked from Shiloh/remnantchat
fix: make full room transcripts autoscroll to the bottom when necessary
This commit is contained in:
parent
a5a61b0cb0
commit
33f85fc8aa
@ -43,7 +43,7 @@ export const ChatTranscript = ({
|
||||
) {
|
||||
boxEl.scrollTo({ top: scrollTopMax })
|
||||
}
|
||||
}, [messageLog.length, previousMessageLogLength])
|
||||
}, [messageLog, previousMessageLogLength])
|
||||
|
||||
useEffect(() => {
|
||||
setPreviousMessageLogLength(messageLog.length)
|
||||
|
Loading…
x
Reference in New Issue
Block a user