fix(useDrag): calculate offset for drag handlers

This commit is contained in:
Christopher Möller
2022-04-14 14:16:19 +02:00
parent 18a3f887fa
commit 4afb386124
5 changed files with 26 additions and 66 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ export function createPositionChange({
};
if (diff) {
const nextPosition = { x: node.position.x + diff.x, y: node.position.y + diff.y };
const nextPosition = { x: diff.x, y: diff.y };
let currentExtent = node.extent || nodeExtent;