mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 12:16:53 +02:00
Fix crashes with cannot read isResizing of undefined
This commit is contained in:
parent
ca0ad0b7ed
commit
e6e77633ad
@ -198,7 +198,8 @@ export default class ScrollPanel extends React.Component {
|
||||
}
|
||||
|
||||
onScroll = ev => {
|
||||
if (this.props.resizeNotifier.isResizing) return; // skip scroll events caused by resizing
|
||||
// skip scroll events caused by resizing
|
||||
if (this.props.resizeNotifier && this.props.resizeNotifier.isResizing) return;
|
||||
debuglog("onScroll", this._getScrollNode().scrollTop);
|
||||
this._scrollTimeout.restart();
|
||||
this._saveScrollState();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user