修复bug 视频回放 ios端

This commit is contained in:
yanran200730
2022-04-22 10:45:41 +08:00
parent 8d5cb694a1
commit 9d402cb729
2 changed files with 8 additions and 9 deletions

View File

@@ -78,7 +78,7 @@
this.isHide = false
if (!this.isChoose) return
this.x = e.clientX - canvasInfo.left - 4
this.x = e.clientX - canvasInfo.left
this.ratioW = this.x / this.canvasWidth
} else {
this.isHide = true
@@ -176,12 +176,13 @@
drawLine(ctx, options) {
const { beginX, beginY, endX, endY, lineColor, lineWidth } = options
ctx.beginPath()
ctx.lineWidth = lineWidth
ctx.strokeStyle = lineColor
ctx.beginPath()
ctx.moveTo(beginX, beginY)
ctx.lineTo(endX, endY)
ctx.strokeStyle = lineColor
ctx.stroke()
ctx.closePath()
},
renderPlayback () {
@@ -197,7 +198,7 @@
lineWidth: item.endTime * unit - item.startTime * unit
})
})
ctx.draw()
ctx.draw(true)
},
renderTimeLine () {
@@ -250,6 +251,7 @@
user-select: none;
cursor: e-resize;
-webkit-user-drag: none;
transform: translateX(-50%);
}
.time-scale {