更新脚本:微调菜单导航侧边栏滚动速度,由20增加到60

This commit is contained in:
Argo-MacBookPro 2019-03-02 21:07:18 +08:00
parent 66ff4ae478
commit 4cbe913610
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
(function ($) {
(function ($) {
var cascadeMenu = function (menus) {
var html = "";
$.each(menus, function (index, menu) {
@ -156,7 +156,7 @@ $(function () {
this.css('overflow', 'auto');
}
else if (!$.browser.versions.ios && $(window).width() > 768) {
this.mCustomScrollbar({ theme: 'minimal' });
this.mCustomScrollbar({ theme: 'minimal', mouseWheel: { scrollAmount: 60 } });
}
else {
this.mCustomScrollbar('destroy');