mirror of
https://github.com/zulip/zulip.git
synced 2026-06-18 21:01:52 +08:00
/help/: Remove perfectScrollbar.
This removes perfectScrollbar because it breaks CTRL-F.
This commit is contained in:
parent
b62ce96dc8
commit
40dfef490d
@ -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]);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user