From 5f29b53ed39d0e52f73d41e0c59de87bd528857d Mon Sep 17 00:00:00 2001 From: catboxanon <122327233+catboxanon@users.noreply.github.com> Date: Wed, 15 Jan 2025 03:25:38 -0500 Subject: [PATCH] Re-add grid snapping to node resize --- src/LGraphCanvas.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/LGraphCanvas.ts b/src/LGraphCanvas.ts index c033b72..d83da85 100644 --- a/src/LGraphCanvas.ts +++ b/src/LGraphCanvas.ts @@ -2429,6 +2429,9 @@ export class LGraphCanvas { } } + snapPoint(newPos, this.#snapToGrid) + snapPoint(newSize, this.#snapToGrid) + const minSize = node.computeSize() if (newSize[0] < minSize[0]) { const diff = minSize[0] - newSize[0]