ximan / swipeSlide

移动端轮播图(基于Zepto/jQuery)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

针对ie设置touch-action属性

superSheng11 opened this issue · comments

ximan你好,最近在看你写的移动端轮播,有一个地方不是太懂希望能够指点一下,谢谢!
var action = '';
if(me.opts.axisX){
action = 'pan-y';//这个地方不是太懂,不应该是‘pan-x’?
}else{
action = 'none';//这个为什么要设置none而不是'pan-y'?
}
me.$el.css({'-ms-touch-action':action,'touch-action':action});