bug
This commit is contained in:
@@ -140,7 +140,12 @@
|
||||
const canvasInfo = document.querySelector(`#synergr-canvas`).getBoundingClientRect()
|
||||
const seconds = 24 * 60 * 60
|
||||
const x = e.clientX - canvasInfo.left + 100
|
||||
if (x < 100) return
|
||||
|
||||
if (x < 100 || x > this.canvasWidth + 100) {
|
||||
this.isHide = true
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
const unit = seconds / this.canvasWidth * (x - 100)
|
||||
this.left = x
|
||||
|
||||
Reference in New Issue
Block a user