PERF: reduce height of the load more past message area (#20545)
On fast networks it could end up in infinite loop until all messages had been loaded.
This commit is contained in:
@@ -473,7 +473,7 @@ export default class ChatLivePane extends Component {
|
||||
const scrollPosition = Math.abs(event.target.scrollTop);
|
||||
const total = event.target.scrollHeight - event.target.clientHeight;
|
||||
const ratio = (scrollPosition / total) * 100;
|
||||
this.isTowardsTop = ratio < 99 && ratio >= 34;
|
||||
this.isTowardsTop = ratio < 99 && ratio >= 80;
|
||||
this.isTowardsBottom = ratio > 1 && ratio <= 4;
|
||||
this.isAtBottom = ratio <= 1;
|
||||
this.isAtTop = ratio >= 99;
|
||||
|
||||
Reference in New Issue
Block a user