mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-20 02:36:18 +08:00
Fix scrollbar
This commit is contained in:
parent
3c9bed4b56
commit
470f39ce04
1 changed files with 1 additions and 1 deletions
|
@ -4,9 +4,9 @@ var activePSB = [];
|
||||||
|
|
||||||
var PerfectSb = (function() {
|
var PerfectSb = (function() {
|
||||||
function init() {
|
function init() {
|
||||||
|
activePSB.length = 0;
|
||||||
$.each($('.perfect-scrollbar'), function(index, object) {
|
$.each($('.perfect-scrollbar'), function(index, object) {
|
||||||
var ps;
|
var ps;
|
||||||
activePSB.length = 0;
|
|
||||||
ps = new PerfectScrollbar(object, { wheelSpeed: 0.5, minScrollbarLength: 20 });
|
ps = new PerfectScrollbar(object, { wheelSpeed: 0.5, minScrollbarLength: 20 });
|
||||||
activePSB.push(ps);
|
activePSB.push(ps);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue