Skip to main content

resolve_node_drag_start_selection

Function resolve_node_drag_start_selection 

Source
pub fn resolve_node_drag_start_selection(
    graph: &Graph,
    view_state: &NodeGraphViewState,
    interaction: &NodeGraphInteractionState,
    input: NodeDragStartSelectionInput,
) -> NodeDragStartSelectionAction
Expand description

Resolves XyFlow-compatible selection behavior for a node-drag start.

This mirrors the selectNodesOnDrag branch in XyFlow: selectable nodes select on drag start by default, multi-selection toggles selected nodes, and disabled selectNodesOnDrag clears an existing selection only when dragging an unselected node outside multi-selection mode.