diff --git a/src/hooks/module/useTrestle.js b/src/hooks/module/useTrestle.js index 0899afcb..88980cad 100644 --- a/src/hooks/module/useTrestle.js +++ b/src/hooks/module/useTrestle.js @@ -3094,7 +3094,7 @@ export const useTrestle = () => { ) } if (!halfBottomRightModule) { - halfBottomRightPoint = { x: x + w, y: y - height / 2 } + halfBottomRightPoint = { x: x + w, y: y + height / 2 } halfBottomRightModule = centerPoints.find( (centerPoint) => Math.abs(centerPoint.x - halfBottomRightPoint.x) < maxX && Math.abs(centerPoint.y - halfBottomRightPoint.y) < maxY, )