about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-11-07 02:11:38 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-11-07 02:11:38 +0100
commitc3559d18a3824982995d2c0d67d829fca4d30fb6 (patch)
tree54dce7e3a8e1cd7ace448dae1916d53eb223ee50
parent4a6cc46e8146ed65ad18e5b039993eda8cf26cce (diff)
Do not modify scroll position unless content has been added to the top, not bottom
-rw-r--r--app/assets/javascripts/components/components/status_list.jsx2
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) {