You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-21 07:42:09 +03:00
more debug logging
This commit is contained in:
@ -572,6 +572,7 @@ module.exports = React.createClass({
|
|||||||
// This because when setting the scrollTop only 10 or so events might be loaded,
|
// This because when setting the scrollTop only 10 or so events might be loaded,
|
||||||
// not giving enough content below the trackedNode to scroll downwards
|
// not giving enough content below the trackedNode to scroll downwards
|
||||||
// enough so it ends up in the top of the viewport.
|
// 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;
|
scrollNode.scrollTop = (trackedNode.offsetTop - (scrollNode.clientHeight * offsetBase)) + pixelOffset;
|
||||||
this._saveScrollState();
|
this._saveScrollState();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user