Don't do scrollToBottom if we're loading.

patch-2
Sean King 2020-10-08 19:13:00 -06:00
rodzic 5deac9f5e0
commit 3a38eed5ba
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 = throttle((e) => {
if (this.isNearBottom()) this.scrollToBottom();
if (this.isNearBottom() && !this.state.loading) this.scrollToBottom();
}, 150);
componentDidMount() {