From a1909b72f21260503217effbe4d220c7b7047532 Mon Sep 17 00:00:00 2001 From: Sean King Date: Thu, 8 Oct 2020 13:46:36 -0600 Subject: [PATCH] Reduce number of calls to scrollToBottom --- app/soapbox/features/chats/components/chat_message_list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/features/chats/components/chat_message_list.js b/app/soapbox/features/chats/components/chat_message_list.js index c969566fe..410b5832f 100644 --- a/app/soapbox/features/chats/components/chat_message_list.js +++ b/app/soapbox/features/chats/components/chat_message_list.js @@ -111,7 +111,7 @@ class ChatMessageList extends ImmutablePureComponent { } handleResize = (e) => { - if (this.isNearBottom()) this.scrollToBottom(); + if (this.isNearBottom() && !this.state.loading) this.scrollToBottom(); } componentDidMount() {