mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
Update comment too
Co-authored-by: Travis Ralston <travisr@matrix.org>
This commit is contained in:
parent
eba815afda
commit
da06c8a5d8
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue