We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd3427d commit 81128efCopy full SHA for 81128ef
src/controllers/organisms/RoomView.js
@@ -325,7 +325,7 @@ module.exports = {
325
if (this.refs.messageWrapper) {
326
var messageWrapperScroll = ReactDOM.findDOMNode(this.refs.messageWrapper).children[2];
327
var wasAtBottom = this.atBottom;
328
- this.atBottom = messageWrapperScroll.scrollHeight - messageWrapperScroll.scrollTop <= messageWrapperScroll.clientHeight;
+ this.atBottom = messageWrapperScroll.scrollHeight - messageWrapperScroll.scrollTop <= messageWrapperScroll.clientHeight - 1;
329
if (this.atBottom && !wasAtBottom) {
330
this.forceUpdate(); // remove unread msg count
331
}
0 commit comments