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.

scroll-to-bottom: Fix misclicks to scroll to bottom button.

Aman Agrawala43c0693b7ee
diff --git a/web/src/click_handlers.js b/web/src/click_handlers.js
index 621cc14e718..1e42abbd646 100644
--- a/web/src/click_handlers.js
+++ b/web/src/click_handlers.js
@@ -285,7 +285,11 @@ export function initialize() {
e.preventDefault();
e.stopPropagation();
- navigate.to_end();
+ // Since it take a few milliseconds for this button complete disappear transition,
+ // it is possible for user to click it before it hides when switching narrows.
+ if (narrow_state.is_message_feed_visible()) {
+ navigate.to_end();
+ }
});
$("body").on("click", ".message_row", function () {