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: Use fadeOut effect to hide the scroll to bottom button.

Aman Agrawal8d78f356e630
diff --git a/static/js/message_scroll.js b/static/js/message_scroll.js
index 6eb3bdcf1b7..c22fe50990e 100644
--- a/static/js/message_scroll.js
+++ b/static/js/message_scroll.js
@@ -137,7 +137,7 @@ export function hide_scroll_to_bottom() {
if (message_viewport.bottom_message_visible() || message_lists.current.empty()) {
// If last message is visible, just hide the
// scroll to bottom button.
- $show_scroll_to_bottom_button.hide();
+ $show_scroll_to_bottom_button.fadeOut(500);
return;
}
@@ -170,9 +170,9 @@ $(document).on("keydown", (e) => {
return;
}
- // Instantly hide scroll to bottom button on any keypress.
+ // Hide scroll to bottom button on any keypress.
// Keyboard users are very less likely to use this button.
- $("#scroll-to-bottom-button-container").hide();
+ $("#scroll-to-bottom-button-container").fadeOut(500);
});
export function is_actively_scrolling() {