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
View File
@@ -215,6 +215,7 @@ export default (NodeComponent: ComponentType<NodeProps>) => {
disabled: !isDraggable,
noDragClassName,
handleSelector: dragHandle,
nodeId: id,
});
if (hidden) {