logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: c3559d18a3824982995d2c0d67d829fca4d30fb6
parent: 4a6cc46e8146ed65ad18e5b039993eda8cf26cce
Author: Eugen Rochko <eugen@zeonfederated.com>
Date:   Mon,  7 Nov 2016 02:11:38 +0100

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

Diffstat:

Mapp/assets/javascripts/components/components/status_list.jsx2+-
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 @@ -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) {