Prevent element resize when timeline is scroll-locked

This commit is contained in:
trevor-signal 2025-02-18 12:56:47 -05:00 committed by GitHub
parent 6330156242
commit 7316bac559
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -220,7 +220,7 @@ export class Timeline extends React.Component<
this.setState(() => { this.setState(() => {
// Prevent scroll due to elements shrinking or disappearing (e.g. typing indicators) // Prevent scroll due to elements shrinking or disappearing (e.g. typing indicators)
const scrollLockHeight = scrollLocked const scrollLockHeight = scrollLocked
? this.#messagesRef.current?.offsetHeight ? this.#messagesRef.current?.getBoundingClientRect().height
: undefined; : undefined;
return { return {
scrollLocked, scrollLocked,