From d36c1de9410b8899ee66e01d341e67ca3b35b179 Mon Sep 17 00:00:00 2001 From: nickago Date: Wed, 12 Aug 2015 09:38:10 -0700 Subject: Changed the default for update to hold your position in the list --- web/react/components/post_list.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/react/components/post_list.jsx') diff --git a/web/react/components/post_list.jsx b/web/react/components/post_list.jsx index d09c2e537..e80351be5 100644 --- a/web/react/components/post_list.jsx +++ b/web/react/components/post_list.jsx @@ -29,7 +29,7 @@ function getStateFromStores() { module.exports = React.createClass({ displayName: "PostList", oldZoom: 0, - holdPosition: false, // The default state is to scroll to the bottom on change + holdPosition: true, // The default state is to hold your scroll position // This behavior should NOT be taken advantage of, always set this to the desired state scrollHeightFromBottom: 0, // This represents the distance from the container's scrollHeight @@ -137,7 +137,7 @@ module.exports = React.createClass({ } else { container.scrollTop(container[0].scrollHeight - container.innerHeight()); } - this.holdPosition = false; + this.holdPosition = true; }, onResize: function() { this.holdPosition = true; -- cgit v1.2.3-1-g7c22