Do not push a dummy element with a scroll token for invisible events
If an event does not `wantTile`, do not add a dummy element with a scroll token, as this can be unperformant with 1000s of events.
This commit is contained in:
parent
7d07e7f958
commit
581c8c138e
1 changed files with 0 additions and 4 deletions
|
@ -362,10 +362,6 @@ module.exports = React.createClass({
|
|||
// replacing all of the DOM elements every time we paginate.
|
||||
ret.push(...this._getTilesForEvent(prevEvent, mxEv, last));
|
||||
prevEvent = mxEv;
|
||||
} else if (!mxEv.status) {
|
||||
// if we aren't showing the event, put in a dummy scroll token anyway, so
|
||||
// that we can scroll to the right place.
|
||||
ret.push(<li key={eventId} data-scroll-token={eventId}/>);
|
||||
}
|
||||
|
||||
var isVisibleReadMarker = false;
|
||||
|
|
Loading…
Reference in a new issue