diff --git a/web/libs/editor/src/regions/RectRegion.jsx b/web/libs/editor/src/regions/RectRegion.jsx index b144d3e8fd72..fa9fc7bb29bb 100644 --- a/web/libs/editor/src/regions/RectRegion.jsx +++ b/web/libs/editor/src/regions/RectRegion.jsx @@ -504,7 +504,7 @@ const HtxRectangleView = ({ item, setShapeRef }) => { t.setAttr("scaleX", 1); t.setAttr("scaleY", 1); - if (self.control?.snap === "pixel") { + if (item.control?.snap === "pixel") { // If snap is enabled, we need to snap the coordinates to the pixel grid - // Sync Konva shape attributes back to computed canvas coordinates to cause a re-render // Canvas coordinates are updated in the setPosition method