Merge pull request #237 from matrix-org/rav/scroll_jump
Only ignore scroll echoes once
This commit is contained in:
commit
d000870668
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…
Add table
Add a link
Reference in a new issue