Revert "修改前端进度条"

This reverts commit 6208caf4ca.
This commit is contained in:
王卓煜
2025-07-23 10:42:54 +08:00
parent 6208caf4ca
commit b8858348c0

View File

@@ -73,7 +73,7 @@ export default {
}, },
methods: { methods: {
down(e) { down(e) {
if(!this.isDrag) return; // if(this.isDrag) {
this.$emit("getMouseDownStatus", true); this.$emit("getMouseDownStatus", true);
this.is_mousedown_progress = true; this.is_mousedown_progress = true;
// 获取完整进度条的clientXdom左上角 // 获取完整进度条的clientXdom左上角
@@ -87,8 +87,8 @@ export default {
var time = localStorage.getItem('videoProgressData'); var time = localStorage.getItem('videoProgressData');
var arr = time&&JSON.parse(time) || {} var arr = time&&JSON.parse(time) || {}
//console.log('down arr:',this.isDrag,this.blobId,arr,arr[this.blobId],current) //console.log('down arr:',this.isDrag,this.blobId,arr,arr[this.blobId],current)
// 禁止拖动到未学习区域 // 禁止拖动
if(time && arr[this.blobId] < current) return; if(!this.isDrag && time && arr[this.blobId] < current) return;
this.$emit("updateProgress", current); this.$emit("updateProgress", current);
// } // }
@@ -124,7 +124,7 @@ export default {
// 禁止拖动 // 禁止拖动
if(!this.isDrag && time && arr[this.blobId] < current) return; if(!this.isDrag && time && arr[this.blobId] < current) return;
this.$emit("updateProgress", current); this.$emit("updateProgress", current);
this.$emit("getMouseDownStatus", false);
} }
}, },
}, },