Don't do scrollToBottom if we're loading.

This commit is contained in:
Sean King
2020-10-08 19:13:00 -06:00
parent 5deac9f5e0
commit 3a38eed5ba

View File

@ -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() {