You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-22 18:41:57 +03:00
clear min-height on scroll
This commit is contained in:
@ -211,6 +211,12 @@ module.exports = React.createClass({
|
|||||||
// forget what we wanted, so don't overwrite the saved state unless
|
// forget what we wanted, so don't overwrite the saved state unless
|
||||||
// this appears to be a user-initiated scroll.
|
// this appears to be a user-initiated scroll.
|
||||||
if (sn.scrollTop != this._lastSetScroll) {
|
if (sn.scrollTop != this._lastSetScroll) {
|
||||||
|
// when scrolling, we don't care about disappearing typing notifs shrinking the timeline
|
||||||
|
// this might cause the scrollbar to resize in case the max-height was not correct
|
||||||
|
// but that's better than ending up with a lot of whitespace at the bottom of the timeline.
|
||||||
|
// we need to above check because when showing the typing notifs, an onScroll event is also triggered
|
||||||
|
this.clearBlockShrinking();
|
||||||
|
|
||||||
this._saveScrollState();
|
this._saveScrollState();
|
||||||
} else {
|
} else {
|
||||||
debuglog("Ignoring scroll echo");
|
debuglog("Ignoring scroll echo");
|
||||||
|
Reference in New Issue
Block a user