我正在使用 dragend.js 创建全屏移动网页. 但是当我尝试使用 slider 时,dragend 会随之滑动。 如何禁止使用 dragend 拖动特定元素?
我试过:
$(".disable-swipe").on("touchstart mousedown", function(e) {
e.stopPropagation();
});
http://codepen.io/anon/pen/XbEgPB
但这也会禁用 slider 。
slider 来自 jquery-mobile。
最佳答案
我从 dragend.js 步进到 swiper.js因为它有更多的功能
关于javascript - Dragendjs 在 jquery-mobile slider 上停止滑动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31254379/