如题,引入mCustomScrollbar生成滚动条,用鼠标滑轮也是可以滚动的,但是速度和鼠标滑轮滚动的速度不一致,这个能解决么?
$("#height_ul,.xla").mCustomScrollbar({
mouseWheelPixels:300,
scrollButtons:{
scrollType:'pixels',
enable:true,
scrollAmount:40
},
theme:"3d-thick"
});
mouseWheelPixels
就是鼠标滚动的速度