Skip to content

Commit 81128ef

Browse files
committed
hopefully fix element-hq#226
1 parent dd3427d commit 81128ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/organisms/RoomView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ module.exports = {
325325
if (this.refs.messageWrapper) {
326326
var messageWrapperScroll = ReactDOM.findDOMNode(this.refs.messageWrapper).children[2];
327327
var wasAtBottom = this.atBottom;
328-
this.atBottom = messageWrapperScroll.scrollHeight - messageWrapperScroll.scrollTop <= messageWrapperScroll.clientHeight;
328+
this.atBottom = messageWrapperScroll.scrollHeight - messageWrapperScroll.scrollTop <= messageWrapperScroll.clientHeight - 1;
329329
if (this.atBottom && !wasAtBottom) {
330330
this.forceUpdate(); // remove unread msg count
331331
}

0 commit comments

Comments
 (0)