a里面嵌入了其他标签,
<a>
<div style='height:800px;width:800px'>
hello
</div>
</a>
此时我在这个800*800范围内不能使用swipe...
这是我使用的插件地址:
https://github.com/mattbryson/TouchSwipe-Jquery-Plugin
有人写了其他插件的没么,支持a标签的...
我试了下,如果就touchmove事件这些都ok
搞定
https://github.com/mattbryson/TouchSwipe-Jquery-Plugin/issues/65
$('#app').swipe({
swipe:function(event, direction, distance, duration, fingerCount, fingerData){
console.log("You swiped " + direction,distance );
},
excludedElements:"button, input, select, textarea, .noSwipe"
})