1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-13 08:02:38 +03:00

Merge pull request #795 from matrix-org/luke/fix-pagination3

Fix infinite pagination/glitches with pagination
This commit is contained in:
Richard van der Hoff
2017-04-07 13:24:22 +01:00
committed by GitHub

View File

@@ -345,7 +345,7 @@ module.exports = React.createClass({
//
// If backwards is true, we unpaginate (remove) tiles from the back (top).
for (let i = 0; i < tiles.length; i++) {
const tile = tiles[backwards ? tiles.length - 1 - i : i];
const tile = tiles[backwards ? i : tiles.length - 1 - i];
// Subtract height of tile as if it were unpaginated
excessHeight -= tile.clientHeight;
// The tile may not have a scroll token, so guard it