a里面嵌入了其他標(biāo)簽,
<a>
<p style='height:800px;width:800px'>
hello
</p>
</a>
此時(shí)我在這個(gè)800*800范圍內(nèi)不能使用swipe...
這是我使用的插件地址:
https://github.com/mattbryson/TouchSwipe-Jquery-Plugin
有人寫(xiě)了其他插件的沒(méi)么,支持a標(biāo)簽的...
我試了下,如果就touchmove事件這些都o(jì)k
小伙看你根骨奇佳,潛力無(wú)限,來(lái)學(xué)PHP伐。
搞定
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"
})