Reduce number of calls to scrollToBottom

patch-2
Sean King 2020-10-08 13:46:36 -06:00
rodzic 285e5ef3eb
commit a1909b72f2
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 510C52BACD6E7257
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -111,7 +111,7 @@ class ChatMessageList extends ImmutablePureComponent {
}
handleResize = (e) => {
if (this.isNearBottom()) this.scrollToBottom();
if (this.isNearBottom() && !this.state.loading) this.scrollToBottom();
}
componentDidMount() {