在开发微信小程序过程中需求是禁止swiper手动滑动,只能自动滚动
解决方法:
在swiper-item中加入catchtouchmove
<swiper-item catchtouchmove='catchTouchMove'>
//禁止swiper手动滑动的时间
catchTouchMove:function(){
return false
},
如有问题欢迎一起谈论啊~
在开发微信小程序过程中需求是禁止swiper手动滑动,只能自动滚动
解决方法:
在swiper-item中加入catchtouchmove
<swiper-item catchtouchmove='catchTouchMove'>
//禁止swiper手动滑动的时间
catchTouchMove:function(){
return false
},
如有问题欢迎一起谈论啊~