From fa50b31fd2291cdd3654449a0bd464f32e2c90dd Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 14 Sep 2020 15:20:06 +0100 Subject: [PATCH] Fix crashes with cannot read isResizing of undefined --- src/components/structures/ScrollPanel.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/structures/ScrollPanel.js b/src/components/structures/ScrollPanel.js index b4f5195803..99a3da2565 100644 --- a/src/components/structures/ScrollPanel.js +++ b/src/components/structures/ScrollPanel.js @@ -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();