有没有人遇到设置“scrollButtons:{scrollType:“stepped”}按钮在触摸设备上不起作用的问题?代码:
$("container").mCustomScrollbar({
setHeight: false,
autoExpandScrollbar:true,
snapAmount: height,
mouseWheel: {
enable: false,
scrollAmount: height,
normalizeDelta:true
},
keyboard: {
enable: false,
scrollAmount: height
},
scrollButtons: {
enable: true,
scrollAmount: 1,
scrollType: "stepped"
},
advanced: {
updateOnContentResize: true
},
scrollInertia: 1,
contentTouchScroll: 10000,
documentTouchScroll: false
});