Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Debounce read marker update on scroll #6774

Merged
merged 2 commits into from
Sep 9, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update comment too
Co-authored-by: Travis Ralston <travisr@matrix.org>
  • Loading branch information
dbkr and turt2live committed Sep 9, 2021
commit da06c8a5d89d4ae05a8ac5d42a0f581fe4bc5486
2 changes: 1 addition & 1 deletion src/components/structures/ScrollPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ export default class ScrollPanel extends React.Component<IProps> {
// fractional values (both too big and too small)
// for scrollTop happen on certain browsers/platforms
// when scrolled all the way down. E.g. Chrome 72 on debian.
// so check difference < 1;
// so check difference <= 1;
return Math.abs(sn.scrollHeight - (sn.scrollTop + sn.clientHeight)) <= 1;
};

Expand Down