省钱兄
省钱兄
  • 发布:2021-04-25 10:43
  • 更新:2021-04-25 10:43
  • 阅读:601

【报Bug】在swiper-item 中 安卓的视频上上下滑动有时会失效,ios的就正常

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: windows7 旗舰版

HBuilderX类型: 正式

HBuilderX版本号: 3.1.9

手机系统: Android

手机系统版本号: Android 10

手机厂商: 华为

手机机型: 华为荣耀10

页面类型: nvue

打包方式: 云端

项目创建方式: HBuilderX

App下载地址或H5⽹址: https://www.pgyer.com/eFF4

操作步骤:
<view :data-index='idx' :style="{ height: height,width: width }" @touchmove="ListTouchMove"  
    @touchend.stop="ListTouchEnd" @touchstart="ListTouchStart">  
</view>
ListTouchStart(e) {  
        this.listTouchStartY = e.changedTouches[0].pageY  
        this.moverOnoff = false;   
        this.pagesy1 = e.changedTouches[0].pageY;  
    },  
ListTouchMove(e) {  
    this.listTouchDirection = this.listTouchStartY - e.changedTouches[0].pageY > 10 ? -1 : 0  
    this.listTouchDirection = e.changedTouches[0].pageY - this.listTouchStartY > 10 ? 1 : this.listTouchDirection  
    const distance = this.distance + e.changedTouches[0].pageY - this.listTouchStartY  
    if (distance > 0) return  
    if (Math.abs(this.listTouchStartY - e.changedTouches[0].pageY) < 2) {  
        this.listTouchDirection = null  
        }  
    },  
ListTouchEnd(e) {  
                let that = this;  
                if (e.changedTouches[0].pageY - that.pagesy1 < -30) {  
                    if (uni.getSystemInfoSync().platform === 'android') {  
                    }  
                    return;  
                }  
                try {  
                    that.clickVideo();  
                    that.translateX = 10  
                } catch (e) {}  
                if (that.scroll) return  
                if (!that.listTouchDirection) {  
                    return  
                }  
            },

预期结果:

正常顺畅的刷新下一条

实际结果:

滑动没有反应

bug描述:

在swiper-item 中 安卓的视频上上下滑动有时会失效,ios的就正常

2021-04-25 10:43 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复