[英]Dragendjs stop slide on jquery-mobile slider
I am creating a fullscreen mobile web page using dragend.js . 我正在使用dragend.js创建一个全屏移动网页。 But when I try to use a slider, dragend slides with it.
但是,当我尝试使用滑块时,请拖动滑块。 How can I disable specific elements from being dragged using dragend?
如何禁用使用dragend拖动特定元素?
I tried: 我试过了:
$(".disable-swipe").on("touchstart mousedown", function(e) {
e.stopPropagation();
});
http://codepen.io/anon/pen/XbEgPB http://codepen.io/anon/pen/XbEgPB
But that disables the slider, too. 但这也会禁用滑块。
The slider is from jquery-mobile. 滑块来自jquery-mobile。
I stept from dragend.js to swiper.js because it has more functionallity 我从dragend.js转到swiper.js,因为它具有更多功能
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.