fix(nodes): always drag draggable node even if not selected

This commit is contained in:
moklick
2020-11-05 14:36:26 +01:00
parent 0774d35846
commit 7e55f8c07f
3 changed files with 5 additions and 2 deletions
+2
View File
@@ -124,6 +124,7 @@ export default (NodeComponent: ComponentType<NodeComponentProps>) => {
const onDrag = useCallback(
(_, data) => {
updateNodePosDiff({
id,
diff: {
x: data.deltaX,
y: data.deltaY,
@@ -148,6 +149,7 @@ export default (NodeComponent: ComponentType<NodeComponentProps>) => {
}
updateNodePosDiff({
id: node.id,
isDragging: false,
});