Reduce number of calls to scrollToBottom

patch-2
Sean King 4 years ago
parent 285e5ef3eb
commit a1909b72f2
No known key found for this signature in database
GPG Key ID: 510C52BACD6E7257

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

Loading…
Cancel
Save