diff options
Diffstat (limited to 'web/react')
-rw-r--r-- | web/react/components/post_list.jsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/web/react/components/post_list.jsx b/web/react/components/post_list.jsx index bb4f7c2b1..1850d6256 100644 --- a/web/react/components/post_list.jsx +++ b/web/react/components/post_list.jsx @@ -64,7 +64,11 @@ module.exports = React.createClass({ SocketStore.addChangeListener(this._onSocketChange); // Timeout exists for the DOM to fully render before making changes - setTimeout(this.scrollWindow, 1); + var self = this + setTimeout(function initialScroll() { + self.holdPosition = false; + self.scrollWindow(); + }, 1); // Handle browser resizing $(window).resize(this.onResize); |