[已删除]
[已删除]
  • 发布:2023-02-11 01:56
  • 更新:2023-02-11 01:56
  • 阅读:189

uni-app打包的APP 苹果APP 单手指左右滑动切换无效(而双手指左右滑动屏幕切换tab有效),太奇葩了,安卓可以正常左右滑动

分类:uni-app

<view @touchstart="moveStart" @touchend="moveEnd">
<mescroll-body ref="mescrollRef" @init="mescrollInit" @up="upCallback" :up="upOption">
<view class="tui-contanier">

            </view>  
        </mescroll-body>  
    </view>  

<script>
moveStart(e){
this.startData.clientX = e.changedTouches[0].clientX; //手指按下时的X坐标
this.startData.clientY = e.changedTouches[0].clientY; //手指按下时的X坐标

        },    
        moveEnd(e){  
            let clientX = e.changedTouches[0].clientX;  
            let reduce = this.startData.clientX - clientX;  
            let clientY = e.changedTouches[0].clientY;  
            let reduce2 = Math.abs(this.startData.clientY - clientY);  
        },  

</script>

2023-02-11 01:56 负责人:无 分享
已邀请:

要回复问题请先登录注册