more debug logging

pull/21833/head
Bruno Windels 2019-03-26 17:40:24 +01:00
parent 7e56a9a80e
commit f2f3661b7e
1 changed files with 1 additions and 0 deletions

View File

@ -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();
}