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

Only ignore scroll echoes once
pull/21833/head
Richard van der Hoff 2016-03-22 10:12:23 +00:00
commit d000870668
1 changed files with 4 additions and 0 deletions

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);