1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-19 20:23:18 +03:00

restore scroll position after hiding typing notifs with checkScroll

This commit is contained in:
Bruno Windels
2019-03-20 17:38:05 +01:00
parent 85d305430f
commit 3e13a11372
2 changed files with 3 additions and 3 deletions

View File

@ -789,9 +789,6 @@ module.exports = React.createClass({
const offsetDiff = offsetFromBottom - currentOffset;
if (offsetDiff > 0) {
balanceElement.style.paddingBottom = `${offsetDiff}px`;
if (this.scrollState.stuckAtBottom) {
sn.scrollTop = sn.scrollHeight;
}
debuglog("update prevent shrinking ", offsetDiff, "px from bottom");
} else if (offsetDiff < 0) {
shouldClear = true;