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:
parent
44d28cd778
commit
0c1efecddd
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue