Only ignore scroll echoes once

When the user scrolls up, and scrolls back to where they were, we want to save
the final scroll state. We were ignoring it because it looked the same as the
last autoscroll.

Fixes https://github.com/vector-im/vector-web/issues/1162
This commit is contained in:
Richard van der Hoff 2016-03-21 14:48:17 +00:00
parent eadd2a522f
commit c89906e571

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