Update comment too

Co-authored-by: Travis Ralston <travisr@matrix.org>
pull/21833/head
David Baker 2021-09-09 18:15:51 +01:00 committed by GitHub
parent a4aa6dfcd7
commit bd5d02d690
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ export default class ScrollPanel extends React.Component<IProps> {
// fractional values (both too big and too small) // fractional values (both too big and too small)
// for scrollTop happen on certain browsers/platforms // for scrollTop happen on certain browsers/platforms
// when scrolled all the way down. E.g. Chrome 72 on debian. // 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; return Math.abs(sn.scrollHeight - (sn.scrollTop + sn.clientHeight)) <= 1;
}; };