修改进度条不用拖拽就能动问题

This commit is contained in:
2025-08-05 09:31:50 +08:00
parent 01d82c16c9
commit e2657ce0a8

View File

@ -82,7 +82,9 @@ export default class TimeLine {
}
moveComplay(func) {
let that = this
that.timeline.addEventListener('mouseup', () => {
// that.timeline.addEventListener('mouseup', () => {
document.addEventListener('mouseup', () => {
if (that.isDragging) {
that.isDragging = false;
if (that.manualPosition !== null) {
// that.sdk.viewer.clock.shouldAnimate = true
@ -98,6 +100,7 @@ export default class TimeLine {
}
}
}
});
}
formatTime(seconds) {