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(() => {
|
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,
|
||||||
|
|
Loading…
Add table
Reference in a new issue