未验证 提交 347d35e2 编写于 作者: I Inuyaksa 提交者: GitHub

Merge pull request #736 from GabbasovDinar/nice-scroll-imp

[IMP] add new option
......@@ -130,7 +130,8 @@
preventmultitouchscrolling: true,
disablemutationobserver: false,
enableobserver: true,
scrollbarid: false
scrollbarid: false,
scrollCLass: false
};
var browserdetected = false;
......@@ -876,6 +877,10 @@
rail.attr('id', self.id);
rail.addClass('nicescroll-rails nicescroll-rails-vr');
if (opt.scrollCLass) {
rail.addClass(opt.scrollCLass);
}
var v, a, kp = ["left", "right", "top", "bottom"]; //**
for (var n in kp) {
a = kp[n];
......@@ -968,6 +973,10 @@
railh = $(_doc.createElement('div'));
railh.attr('id', self.id + '-hr');
railh.addClass('nicescroll-rails nicescroll-rails-hr');
if (opt.scrollCLass) {
railh.addClass(opt.scrollCLass);
}
railh.height = Math.max(parseFloat(opt.cursorwidth), cursor.outerHeight());
railh.css({
height: railh.height + "px",
......@@ -3717,4 +3726,4 @@
$.nicescroll.options = _globaloptions;
}
}));
\ No newline at end of file
}));
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册