Skip to content

Commit

Permalink
Fix selection box is always a square
Browse files Browse the repository at this point in the history
  • Loading branch information
webfiltered authored and huchenlei committed Jan 3, 2025
1 parent 318c4e2 commit a548a72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LGraphCanvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4450,8 +4450,8 @@ export class LGraphCanvas {
ctx.setTransform(ratio, 0, 0, ratio, 0, 0)

const x = eDown.safeOffsetX
const y = eDown.safeOffsetX
ctx.strokeRect(x, y, eMove.safeOffsetX - x, eMove.safeOffsetX - y)
const y = eDown.safeOffsetY
ctx.strokeRect(x, y, eMove.safeOffsetX - x, eMove.safeOffsetY - y)

ctx.setTransform(transform)
} else {
Expand Down

0 comments on commit a548a72

Please sign in to comment.