Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
inbox: Amend comment to clarity placement of scrollTop.
Aman Agrawal1bd50e60ec98
diff --git a/web/src/inbox_ui.js b/web/src/inbox_ui.jsindex 807b291902f..ecfa43261a2 100644--- a/web/src/inbox_ui.js+++ b/web/src/inbox_ui.js@@ -463,8 +463,8 @@ export function complete_rerender() {update_filters();show_empty_inbox_text(has_visible_unreads);// If the focus is not on the inbox rows, the inbox view scrolls- // downwhen moving from other views to the inbox view. To avoid- // this, we scroll to top before restoring focus.+ // down when moving from other views to the inbox view. To avoid+ // this, we scroll to top before restoring focus via revive_current_focus.$("html").scrollTop(0);setTimeout(() => {// We don't want to focus on simplebar ever.