8***@qq.com
8***@qq.com
  • 发布:2021-07-23 11:47
  • 更新:2021-07-23 11:49
  • 阅读:918

【报Bug】slider组件,拖动事件完成:change事件,被页面点击事件阻止

分类:uni-app

产品分类: uniapp/H5

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: 10

HBuilderX版本号: 3.1.22

浏览器平台: Chrome

浏览器版本: 91.0.4472.124

项目创建方式: CLI

CLI版本号: 3.1.2

App下载地址或H5⽹址: https://www.dachun.tv

示例代码:

// 拖动进度条
sliderChange(data) {
// console.log('拖动完成', data.detail.value)
this.setIsDrag(false)
this.isMove = false;
this.sliderVal = data.detail.value
if(data.detail.value >= 100){ //拖动到最后3秒
this.sliderVal = ((this.duration - 3) / (this.duration / 100)).toFixed(2);
}
let a = this.duration / 100;
this.sliderVal = this.sliderVal;
this.videoContext.seek(Math.floor((this.sliderVal * a)));
if(!this.firstPlay) return
},

操作步骤:

在slider触发change事件时,点击页面,change事件不触发

预期结果:

change事件正常运行

实际结果:

阻止了change事件的运行

bug描述:

slider组件,拖动事件完成:change事件,被页面点击事件阻止

2021-07-23 11:47 负责人:无 分享
已邀请:
8***@qq.com

8***@qq.com (作者)

不仅仅是H5,小程序、APP都会有这个问题

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