diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-07 02:11:38 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-07 02:11:38 +0100 |
commit | c3559d18a3824982995d2c0d67d829fca4d30fb6 (patch) | |
tree | 54dce7e3a8e1cd7ace448dae1916d53eb223ee50 /app/assets/javascripts | |
parent | 4a6cc46e8146ed65ad18e5b039993eda8cf26cce (diff) |
Do not modify scroll position unless content has been added to the top, not bottom
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/components/components/status_list.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/components/status_list.jsx b/app/assets/javascripts/components/components/status_list.jsx index 633f06816..58aa94cc0 100644 --- a/app/assets/javascripts/components/components/status_list.jsx +++ b/app/assets/javascripts/components/components/status_list.jsx @@ -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) { |