From f2f3661b7e56ece752e003fffa50f955de675d8e Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 26 Mar 2019 17:40:24 +0100 Subject: [PATCH] more debug logging --- src/components/structures/ScrollPanel.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/structures/ScrollPanel.js b/src/components/structures/ScrollPanel.js index 57185b08b0..99c2df1b14 100644 --- a/src/components/structures/ScrollPanel.js +++ b/src/components/structures/ScrollPanel.js @@ -572,6 +572,7 @@ module.exports = React.createClass({ // This because when setting the scrollTop only 10 or so events might be loaded, // not giving enough content below the trackedNode to scroll downwards // enough so it ends up in the top of the viewport. + debuglog("scrollToken: setting scrollTop", {offsetBase, pixelOffset, offsetTop: trackedNode.offsetTop}); scrollNode.scrollTop = (trackedNode.offsetTop - (scrollNode.clientHeight * offsetBase)) + pixelOffset; this._saveScrollState(); }