From f4f193b5cae44bb2ca53becc24cb58ccde1e41b0 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Fri, 22 Sep 2017 08:49:08 -0700 Subject: [PATCH] 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. --- static/js/topic_list.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/topic_list.js b/static/js/topic_list.js index 939d2616cb..a84373e2be 100644 --- a/static/js/topic_list.js +++ b/static/js/topic_list.js @@ -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); };