我正在使用一个插件来滚动具有“moveDragger”选项的内容:
function customScrollBar() {
if($(".dropdown .close_list").length) {
$(".dropdown .close_list").mCustomScrollbar({
scrollInertia: 300
});
}
if ($(".compare_table .table_responsive").length != "") {
$(".compare_table .table_responsive").mCustomScrollbar({
axis: "x",
//contentTouchScroll: false,
documentTouchScroll: false,
moveDragger:true,
advanced: {autoExpandHorizontalScroll: true},
scrollInertia: 300,
});
}
}
正如文档所说http://manos.malihu.gr/jquery-custom-content-scroller/#get-started-section这个选项只允许在拖动器的帮助下滚动内容,但在我的情况下我能够通过触摸内容本身来滚动内容(如果我使用手机则滑动内容)。如何仅使用水平拖动器使其滚动内容?
test.bikstart.ru/arktika/compare.html