FIX: more resilient bottom of message check (#21613)

1.0 lenience might not be enough in rare cases and there are no real consequences to slightly increase it.
This commit is contained in:
Joffrey JAFFEUX 2023-05-17 18:05:18 +02:00 committed by GitHub
parent 44d28cd778
commit 0c1efecddd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1000,7 +1000,7 @@ export default class ChatLivePane extends Component {
#isBottomOfMessageVisible(element, container) {
const rect = element.getBoundingClientRect();
const containerRect = container.getBoundingClientRect();
// - 1.0 to account for rounding errors, especially on firefox
return rect.bottom - 1.0 <= containerRect.bottom;
// - 5.0 to account for rounding errors, especially on firefox
return rect.bottom - 5.0 <= containerRect.bottom;
}
}