message_scroll: Only run `scroll_finished` when RT is not visible.

We didn't use to control how `active` class is set on
`#message_feed_container`. It was done by bootstrap on its own
and it doesn't even matter if `message_feed_container` is visible
for it to have `active` class according to bootstrap. So, we only
run `scroll_finished` when recent topics is not visible which
seems logical.
This commit is contained in:
Aman Agrawal 2022-11-21 13:03:13 +00:00 committed by Tim Abbott
parent 930f588fff
commit a0f42edaa2
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ export function scroll_finished() {
actively_scrolling = false;
hide_scroll_to_bottom();
if (!$("#message_feed_container").hasClass("active")) {
if (recent_topics_util.is_visible()) {
return;
}