Prevent element resize when timeline is scroll-locked
This commit is contained in:
parent
6330156242
commit
7316bac559
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ export class Timeline extends React.Component<
|
|||
this.setState(() => {
|
||||
// Prevent scroll due to elements shrinking or disappearing (e.g. typing indicators)
|
||||
const scrollLockHeight = scrollLocked
|
||||
? this.#messagesRef.current?.offsetHeight
|
||||
? this.#messagesRef.current?.getBoundingClientRect().height
|
||||
: undefined;
|
||||
return {
|
||||
scrollLocked,
|
||||
|
|
Loading…
Add table
Reference in a new issue