mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 06:47:33 +00:00
Fix selection box is always a square
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user