mirror of
https://github.com/zulip/zulip.git
synced 2026-06-24 21:08:25 +08:00
topic list: Scroll to the top earlier when zooming.
We want to scroll the left sidebar to the top as soon as the user zooms in on a stream, and we don't want to wait for the server, otherwise we'll get jumpiness.
This commit is contained in:
parent
9f10cc62d6
commit
f4f193b5ca
@ -258,10 +258,11 @@ exports.zoom_in = function () {
|
||||
active_widget.show_no_more_topics();
|
||||
}
|
||||
|
||||
$('#stream-filters-container').scrollTop(0);
|
||||
$('#stream-filters-container').perfectScrollbar('update');
|
||||
}
|
||||
|
||||
$('#stream-filters-container').scrollTop(0);
|
||||
$('#stream-filters-container').perfectScrollbar('update');
|
||||
active_widget.show_spinner();
|
||||
topic_data.get_server_history(stream_id, on_success);
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user