mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
It wasn't working ideally and introduced some annoying false positivies
This commit is contained in:
parent
2ff7146b6d
commit
bdc8b4fd91
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ export default class ScrollableList extends PureComponent {
|
|||
|
||||
// Reset the scroll position when a new child comes in in order not to
|
||||
// jerk the scrollbar around if you're already scrolled down the page.
|
||||
if (someItemInserted && this._oldScrollPosition && (this.node.scrollTop > 0 || this._recentlyMoved())) {
|
||||
if (someItemInserted && this._oldScrollPosition && this.node.scrollTop > 0) {
|
||||
const newScrollTop = this.node.scrollHeight - this._oldScrollPosition;
|
||||
|
||||
if (this.node.scrollTop !== newScrollTop) {
|
||||
|
|
Loading…
Reference in a new issue