Reduce number of calls to scrollToBottom

This commit is contained in:
Sean King 2020-10-08 13:46:36 -06:00
parent 285e5ef3eb
commit a1909b72f2
No known key found for this signature in database
GPG Key ID: 510C52BACD6E7257
1 changed files with 1 additions and 1 deletions

View File

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