feat(props): add connectionDragThreshold
This commit is contained in:
@@ -170,6 +170,12 @@ export type SvelteFlowProps<
|
||||
* @default 0
|
||||
*/
|
||||
nodeClickDistance?: number;
|
||||
/**
|
||||
* The threshold in pixels that the mouse must move before a connection line starts to drag.
|
||||
* This is useful to prevent accidental connections when clicking on a handle.
|
||||
* @default 1
|
||||
*/
|
||||
connectionDragThreshold?: number;
|
||||
/** Minimum zoom level
|
||||
* @default 0.5
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user