mirror of https://github.com/zulip/zulip.git
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:
parent
930f588fff
commit
a0f42edaa2
|
@ -190,7 +190,7 @@ export function scroll_finished() {
|
||||||
actively_scrolling = false;
|
actively_scrolling = false;
|
||||||
hide_scroll_to_bottom();
|
hide_scroll_to_bottom();
|
||||||
|
|
||||||
if (!$("#message_feed_container").hasClass("active")) {
|
if (recent_topics_util.is_visible()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue