Commit 383606f2 authored by Patrik Meijer's avatar Patrik Meijer
Browse files

FIX offset

parent 7ff59e0e
......@@ -57,8 +57,8 @@ const canvasTarget = {
name = getIndexedName(name, getChildrenNames(props.gmeClient, props.activeNode));
position.x -= dragItem.nodeData.offset.x / 2;
position.y -= dragItem.nodeData.offset.y / 2;
position.x -= dragItem.offset.x;
position.y -= dragItem.offset.y;
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