Browse Source

Do not modify scroll position unless content has been added to the top, not bottom

closed-social-glitch-2
Eugen Rochko 7 years ago
parent
commit
c3559d18a3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/assets/javascripts/components/components/status_list.jsx

+ 1
- 1
app/assets/javascripts/components/components/status_list.jsx View File

@ -46,7 +46,7 @@ const StatusList = React.createClass({
},
componentDidUpdate (prevProps) {
if (prevProps.statusIds.size < this.props.statusIds.size && this._oldScrollPosition) {
if (prevProps.statusIds.size < this.props.statusIds.size && prevProps.statusIds.first() !== this.props.statusIds.first() && this._oldScrollPosition) {
const node = ReactDOM.findDOMNode(this);
if (node.scrollTop > 0) {

Loading…
Cancel
Save