小程序轮播字体向上滚动禁止拉伸
<swiper indicator-dots= "true" autoplay= "{{autoplay}}" circular= "{{circular}}" interval= "{{interval}}" duration= "{{duration}}" indicator-color= "rgba(255,255,255,0.6)" indicator-active-color= "#fff" > <block wx: for = "{{imgUrls}}" > <swiper-item catchtouchmove= 'catchTouchMove' > <image src= "{{item}}" class= "slide-image" /> </swiper-item> </block> </swiper> catchTouchMove: function (res) { return false } |
小程序用轮播图效果做字体向上滚动时;用手划时有个拉伸,
catchTouchMove: function (res) {
return false
}
这个很好的解决了拉伸问题;
小程序相关项目案例:github.crmeb.net/u/mmj