Merge branch 'reduce-scroll-to-bottom-calls' into 'develop'

Improve chat message list performance

See merge request soapbox-pub/soapbox-fe!340
patch-2
Alex Gleason 2020-10-09 01:47:34 +00:00
commit c5e7ca922e
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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;