fix accidental checkbox addition

This commit is contained in:
Alex Turchyn
2025-05-21 22:05:33 +03:00
committed by Pete Matsyburka
parent a7ed0b86a4
commit 38674a9fc9
3 changed files with 9 additions and 4 deletions
+6 -1
View File
@@ -290,7 +290,12 @@ export default {
area.cell_w = this.newArea.cell_w
}
this.$emit('draw', area)
const dx = Math.abs(e.offsetX - this.$refs.mask.clientWidth * this.newArea.initialX)
const dy = Math.abs(e.offsetY - this.$refs.mask.clientHeight * this.newArea.initialY)
const isTooSmall = dx < 8 && dy < 8
this.$emit('draw', { area, isTooSmall })
}
this.showMask = false