Commit 7ff59e0e authored by Patrik Meijer's avatar Patrik Meijer
Browse files

use offset from create item

parent 0ebfbf61
......@@ -57,8 +57,8 @@ const canvasTarget = {
name = getIndexedName(name, getChildrenNames(props.gmeClient, props.activeNode));
position.x -= dragItem.nodeData.bbox.width / 2;
position.y -= dragItem.nodeData.bbox.height / 2;
position.x -= dragItem.nodeData.offset.x / 2;
position.y -= dragItem.nodeData.offset.y / 2;
position.x = Math.trunc(position.x);
position.y = Math.trunc(position.y);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment