Changed the default for update to hold your position in the list

Этот коммит содержится в:
nickago
2015-08-12 09:38:10 -07:00
родитель f614249dd3
Коммит d36c1de941

Просмотреть файл

@@ -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;