Line 38: | Line 38: | ||
/*Mobile Control*/ | /*Mobile Control*/ | ||
− | + | 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); |
Revision as of 14:54, 20 July 2018