Reduce number of calls to scrollToBottom
This commit is contained in:
parent
285e5ef3eb
commit
a1909b72f2
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue