From 57f01b83becc0042887e7312a16290e3353b6e2b Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Mon, 19 Jun 2017 13:18:54 +0100 Subject: [PATCH] Revert "Save scroll state immediately before updating" This reverts commit 4124a8dcffe40287c3c2537d7cc2bbe3713d1f7a from PR https://github.com/matrix-org/matrix-react-sdk/pull/1076 --- src/components/structures/ScrollPanel.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/components/structures/ScrollPanel.js b/src/components/structures/ScrollPanel.js index 2daa6d2152..f035efee92 100644 --- a/src/components/structures/ScrollPanel.js +++ b/src/components/structures/ScrollPanel.js @@ -160,10 +160,6 @@ module.exports = React.createClass({ this.checkFillState(); }, - componentWillUpdate: function(nextProps, nextState) { - this._saveScrollState(); - }, - componentDidUpdate: function() { // after adding event tiles, we may need to tweak the scroll (either to // keep at the bottom of the timeline, or to maintain the view after