Line 38: | Line 38: | ||
/*Mobile Control*/ | /*Mobile Control*/ | ||
− | document.body.addEventListener('touchmove',function(ev){ev.preventDefault();},{passive:false});//passive: false 对于iOS 11.3起作用 | + | //document.body.addEventListener('touchmove',function(ev){ev.preventDefault();},{passive:false});//passive: false 对于iOS 11.3起作用 |
document.addEventListener('touchstart',touch, false); | document.addEventListener('touchstart',touch, false); | ||
document.addEventListener('touchmove',touch, false); | document.addEventListener('touchmove',touch, false); | ||
Line 86: | Line 86: | ||
case "touchend": | case "touchend": | ||
$(".s1 > div").css("transition", transition); | $(".s1 > div").css("transition", transition); | ||
− | + | if(!swipeStatus){clientY_end=touchEvent.changedTouches[0].clientY;}//检测是否滑动,与边缘有关 | |
moveY=clientY_end-clientY_start; | moveY=clientY_end-clientY_start; |
Revision as of 06:25, 20 July 2018