From c3559d18a3824982995d2c0d67d829fca4d30fb6 Mon Sep 17 00:00:00 2001
From: Eugen Rochko <eugen@zeonfederated.com>
Date: Mon, 7 Nov 2016 02:11:38 +0100
Subject: [PATCH] Do not modify scroll position unless content has been added
 to the top, not bottom

---
 app/assets/javascripts/components/components/status_list.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/assets/javascripts/components/components/status_list.jsx b/app/assets/javascripts/components/components/status_list.jsx
index 633f068168..58aa94cc01 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) {
-- 
GitLab