From 40dfef490d1b5ee8920e7af1c25b34c856450c46 Mon Sep 17 00:00:00 2001 From: Brock Whittaker Date: Mon, 28 Aug 2017 09:49:26 -0700 Subject: [PATCH] /help/: Remove perfectScrollbar. This removes perfectScrollbar because it breaks CTRL-F. --- static/js/portico/help.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/static/js/portico/help.js b/static/js/portico/help.js index 75b6bf22c0..caada076dc 100644 --- a/static/js/portico/help.js +++ b/static/js/portico/help.js @@ -1,5 +1,3 @@ -const Ps = require('perfect-scrollbar'); - (function () { var html_map = {}; var loading = { @@ -42,25 +40,8 @@ const Ps = require('perfect-scrollbar'); var container = $(".markdown")[0]; container.scrollTop = 0; - Ps.update(container); }); - Ps.initialize($(".markdown")[0], { - suppressScrollX: true, - useKeyboard: false, - wheelSpeed: 0.68, - }); - - Ps.initialize($(".sidebar")[0], { - suppressScrollX: true, - useKeyboard: false, - wheelSpeed: 0.68, - }); - - window.onresize = function () { - Ps.update($(".markdown")[0]); - }; - window.addEventListener("popstate", function () { var path = window.location.pathname; $(".markdown .content").html(html_map[path]);