1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| $('.slider-list').bind('touchstart',function(e){ startX = e.touches[0].pageX; });
$('.slider-list').bind('touchmove',function(e){ e.preventDefault(); });
$('.slider-list').bind('touchend',function(e){ endX = e.changedTouches[0].pageX; deltaX = endX - startX;
if(deltaX>0){ }else{ } })
|