Skip to content

Commit

Permalink
fix: can not draw error
Browse files Browse the repository at this point in the history
  • Loading branch information
ChangChiTW committed Feb 8, 2023
1 parent 7384d78 commit b21d1c0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/components/editor/main/Stage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,6 @@ export default {
const posX = e.x
const posY = e.y
if (Math.floor((posX / this.zoom) / originUnit) === Math.floor((this.currentRelPosPoint.x / this.zoom) / originUnit) && Math.floor((posX / this.zoom) / originUnit) === Math.floor((this.currentRelPosPoint.y / this.zoom) / originUnit)) {
return false
}
let canAdd = true
const unitX = parseInt((posX / this.zoom) / originUnit)
Expand Down

0 comments on commit b21d1c0

Please sign in to comment.