summaryrefslogtreecommitdiffstats
path: root/web/react/components/post_list.jsx
diff options
context:
space:
mode:
authornickago <ngonella@calpoly.edu>2015-08-12 09:38:10 -0700
committernickago <ngonella@calpoly.edu>2015-08-12 09:38:10 -0700
commitd36c1de9410b8899ee66e01d341e67ca3b35b179 (patch)
treef4a33c5296d66a44e487a15436f5457be610864f /web/react/components/post_list.jsx
parentf614249dd3446cd7bdfc05cba606614509afab49 (diff)
downloadchat-d36c1de9410b8899ee66e01d341e67ca3b35b179.tar.gz
chat-d36c1de9410b8899ee66e01d341e67ca3b35b179.tar.bz2
chat-d36c1de9410b8899ee66e01d341e67ca3b35b179.zip
Changed the default for update to hold your position in the list
Diffstat (limited to 'web/react/components/post_list.jsx')
-rw-r--r--web/react/components/post_list.jsx4
1 files changed, 2 insertions, 2 deletions
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;