Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

message_scroll: Fix scroll-to-bottom button not hiding in topic views.

Sayam Samal8fb664598897
diff --git a/web/src/message_scroll.ts b/web/src/message_scroll.ts
index cc9e1d342c0..474c5e139f7 100644
--- a/web/src/message_scroll.ts
+++ b/web/src/message_scroll.ts
@@ -36,10 +36,7 @@ export function hide_scroll_to_bottom(): void {
// Wait before hiding to allow user time to click on the button.
hide_scroll_to_bottom_timer = setTimeout(() => {
// Don't hide if user is hovered on it.
- if (
- !narrow_state.narrowed_by_topic_reply() &&
- !the($show_scroll_to_bottom_button).matches(":hover")
- ) {
+ if (!the($show_scroll_to_bottom_button).matches(":hover")) {
$show_scroll_to_bottom_button.removeClass("show");
}
}, 3000);