Skip to content

Commit 9e260ad

Browse files
committed
make sure we're at the bottom, although that seems to always be the case in this branch?
1 parent 790e752 commit 9e260ad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/structures/ScrollPanel.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,9 @@ module.exports = React.createClass({
215215
// this might cause the scrollbar to resize in case the max-height was not correct
216216
// but that's better than ending up with a lot of whitespace at the bottom of the timeline.
217217
// we need to above check because when showing the typing notifs, an onScroll event is also triggered
218-
this.clearBlockShrinking();
218+
if (!this.isAtBottom()) {
219+
this.clearBlockShrinking();
220+
}
219221

220222
this._saveScrollState();
221223
} else {

0 commit comments

Comments
 (0)