feat(props): add connectionDragThreshold

This commit is contained in:
moklick
2025-06-16 17:33:44 +02:00
parent 7c5c14b2c5
commit a07dc81afa
11 changed files with 25 additions and 2 deletions
@@ -92,6 +92,7 @@ export function EdgeUpdateAnchors<EdgeType extends Edge = Edge>({
updateConnection,
getTransform: () => store.getState().transform,
getFromHandle: () => store.getState().connection.fromHandle,
dragThreshold: store.getState().connectionDragThreshold,
});
};
@@ -149,6 +149,7 @@ function HandleComponent(
getTransform: () => store.getState().transform,
getFromHandle: () => store.getState().connection.fromHandle,
autoPanSpeed: currentStore.autoPanSpeed,
dragThreshold: currentStore.connectionDragThreshold,
});
}
@@ -65,6 +65,7 @@ const reactFlowFieldsToTrack = [
'isValidConnection',
'selectNodesOnDrag',
'nodeDragThreshold',
'connectionDragThreshold',
'onBeforeDelete',
'debug',
'autoPanSpeed',