owlCarousel,检测拖动是否由鼠标引起?

时间:2019-03-11 15:46:11

标签: javascript owl-carousel drag

初始化:

ps aux

有两个箭头指示向右和向左拖动:jQuery(...).owlCarousel({ loop: true, navigation: true, navigationText: "", dots: false, autoWidth: true, pagination: false afterMove = function(e) { // I only want to run something if moving was caused by mouse, not programaticaly } }); .trigger("owl.next");但是,它们也使afterMove事件触发。如果afterMove是由鼠标拖动引起的,如何通知?

0 个答案:

没有答案