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:
parent
eadd2a522f
commit
c89906e571
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue