Skip to content

Commit 404ddad

Browse files
authored
Merge pull request matrix-org#6751 from matrix-org/dbkr/fix_stuck_scroll
Fix scroll being stuck at bottom
2 parents 78617c0 + 6468ce6 commit 404ddad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/structures/ScrollPanel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,8 @@ export default class ScrollPanel extends React.Component<IProps> {
275275
// fractional values (both too big and too small)
276276
// for scrollTop happen on certain browsers/platforms
277277
// when scrolled all the way down. E.g. Chrome 72 on debian.
278-
// so check difference <= 1;
279-
return Math.abs(sn.scrollHeight - (sn.scrollTop + sn.clientHeight)) <= 1;
278+
// so check difference < 1;
279+
return Math.abs(sn.scrollHeight - (sn.scrollTop + sn.clientHeight)) < 1;
280280
};
281281

282282
// returns the vertical height in the given direction that can be removed from

0 commit comments

Comments
 (0)