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
+2 -2
View File
@@ -86,8 +86,8 @@ const UpdatableEdge = () => {
snapToGrid={true}
onEdgeUpdate={onEdgeUpdate}
onConnect={onConnect}
onEdgeUpdateStart={onEdgeUpdateStart}
onEdgeUpdateEnd={onEdgeUpdateEnd}
// onEdgeUpdateStart={onEdgeUpdateStart}
// onEdgeUpdateEnd={onEdgeUpdateEnd}
>
<Controls />
</ReactFlow>