PandaMaker
PandaMaker
  • 发布:2021-04-01 10:35
  • 更新:2023-01-04 11:44
  • 阅读:792

movable-view在swiper中使用的时候,放大后拖动页面的时候,swiper的滑动切换也会生效,有人知道怎么解决吗?

分类:uni-app

附上代码 大佬们看下

<swiper class="swiper" :indicator-dots="indicatorDots" :autoplay="autoplay" :disable-touch='isSwiper' :duration="duration" :current='current' @transition='itemChange' @change='toPay' @animationfinish='endAni'>  
		<swiper-item class="swiper-item" v-for="(imgItem,idx) in imgSmaList" :key="idx" >  
			<movable-area class="swiper-image" :scale-area='isScale'>  
					<movable-view class="swiper-image" :scale-value='sca_val' :disabled="movDis" @touchend="touched" @scale='scaleFun' out-of-bounds='false' friction='1' inertia='true' animation='true' :scale='isScale' scale-min='1' scale-max='1.6' x="0" y="0" direction="all" @change="addChange">  
							<image :src="imgItem" mode="aspectFit" class="swiper-image" @touchmove="imgTouchmove" @touchend="imgTouched" @longpress="saveImg"></image>  
					</movable-view>  
			</movable-area>  
	</swiper-item>  
</swiper>
2021-04-01 10:35 负责人:无 分享
已邀请:
3***@qq.com

3***@qq.com

大哥有解决吗

码嘛呢

码嘛呢 - 码码嘛码嘛

我也有这个问题, 请问有解决吗

要回复问题请先登录注册