1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-10 09:22:25 +03:00

Merge pull request #237 from matrix-org/rav/scroll_jump

Only ignore scroll echoes once
This commit is contained in:
Richard van der Hoff
2016-03-22 10:12:23 +00:00

View File

@@ -170,6 +170,10 @@ module.exports = React.createClass({
this._saveScrollState();
} else {
debuglog("Ignoring scroll echo");
// only ignore the echo once, otherwise we'll get confused when the
// user scrolls away from, and back to, the autoscroll point.
this._lastSetScroll = undefined;
}
this.props.onScroll(ev);