From a548a72f669bf2dadc887126da4548633c9860ce Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Fri, 3 Jan 2025 14:07:40 +1100 Subject: [PATCH] Fix selection box is always a square --- src/LGraphCanvas.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LGraphCanvas.ts b/src/LGraphCanvas.ts index 3c752bb..5626cfb 100644 --- a/src/LGraphCanvas.ts +++ b/src/LGraphCanvas.ts @@ -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 {