kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Reduce number of calls to scrollToBottom
rodzic
285e5ef3eb
commit
a1909b72f2
|
@ -111,7 +111,7 @@ class ChatMessageList extends ImmutablePureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
handleResize = (e) => {
|
handleResize = (e) => {
|
||||||
if (this.isNearBottom()) this.scrollToBottom();
|
if (this.isNearBottom() && !this.state.loading) this.scrollToBottom();
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
|
|
Ładowanie…
Reference in New Issue