修复bug 视频回放 ios端
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user