sforkowany z mirror/soapbox
Merge branch 'reduce-scroll-to-bottom-calls' into 'develop'
Improve chat message list performance See merge request soapbox-pub/soapbox-fe!340patch-2
commit
c5e7ca922e
|
@ -110,9 +110,9 @@ class ChatMessageList extends ImmutablePureComponent {
|
|||
return scrollBottom < elem.offsetHeight * 1.5;
|
||||
}
|
||||
|
||||
handleResize = (e) => {
|
||||
handleResize = throttle((e) => {
|
||||
if (this.isNearBottom()) this.scrollToBottom();
|
||||
}
|
||||
}, 150);
|
||||
|
||||
componentDidMount() {
|
||||
const { dispatch, chatId } = this.props;
|
||||
|
|
Ładowanie…
Reference in New Issue