mirror of
https://github.com/element-hq/element-web
synced 2024-10-25 04:05:55 +03:00
Merge pull request #5205 from matrix-org/t3chguy/fix/resizeNotifier-optional
Fix crashes with cannot read isResizing of undefined
This commit is contained in:
commit
c6a3b8b783
1 changed files with 2 additions and 1 deletions
|
@ -198,7 +198,8 @@ export default class ScrollPanel extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
onScroll = ev => {
|
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);
|
debuglog("onScroll", this._getScrollNode().scrollTop);
|
||||||
this._scrollTimeout.restart();
|
this._scrollTimeout.restart();
|
||||||
this._saveScrollState();
|
this._saveScrollState();
|
||||||
|
|
Loading…
Reference in a new issue