mirror of https://github.com/vector-im/riot-web
b718f1542c
Instead of using a window of a fixed number of events, unpaginate based on the distance of the viewport from the end of the scroll range. The ScrollPanel uses the scrollTokens to convey to its parent (the TimelinePanel, in this case) the point to unpaginate up to. The TimelinePanel then takes a chunk of events off the front or back of `this.state.events` using `timelineWindow.unpaginate`. Fixes https://github.com/vector-im/vector-web/issues/2020 |
||
---|---|---|
.. | ||
MessagePanel-test.js | ||
RoomView-test.js | ||
ScrollPanel-test.js | ||
TimelinePanel-test.js |