4***@qq.com
4***@qq.com
  • 发布:2024-06-25 22:34
  • 更新:2024-07-29 15:15
  • 阅读:77

左右滑动的时候还可以下拉刷新

分类:uni-app

你好,我希望左右滑动的时候,禁止下拉刷新,怎么改呢

<swiper :current="swiperIndex" :duration="300" class="swiper-1" easing-function="linear"  
            @change="swiperChange" @touchstart="swiperTouchStart"  
      @touchend="swiperTouchEnd">  

swiperTouchStart 这个下拉的时候也会触发,为什么你的小程序demo里面左右滑动的时候,可以禁止下拉刷新呢,有时间帮忙看下呢,谢谢

2024-06-25 22:34 负责人:无 分享
已邀请:
z***@163.com

z***@163.com - 开发开发

.container {
touch-action: pan-x;
}

touch-action: pan-x;这个css属性可以让元素只能左右滑动,应该可以避免你说的下拉刷新的问题

要回复问题请先登录注册