From 1192111ce22625a5a33c9aa1d53f75fe6dd9e95c Mon Sep 17 00:00:00 2001 From: Shubham Dhama Date: Sat, 17 Feb 2018 15:17:51 +0530 Subject: [PATCH] group popovers: Refactor setting up scrollbar. Using a wheelspeed of 0.68 is fine as used throughtout Zulip. --- static/js/popovers.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/static/js/popovers.js b/static/js/popovers.js index 9fd1b0bf1c..ff8a616e39 100644 --- a/static/js/popovers.js +++ b/static/js/popovers.js @@ -197,11 +197,7 @@ function show_user_group_info_popover(element, group, message) { trigger: "manual", }); elt.popover("show"); - $('.nav.nav-list.member-list').perfectScrollbar({ - suppressScrollX: true, - useKeyboard: false, - wheelSpeed: 0.5, - }); + ui.set_up_scrollbar($('.group-info-popover .member-list')); current_message_info_popover_elem = elt; } }