Skip to main content

attach_drag_pending

Function attach_drag_pending 

Source
pub fn attach_drag_pending(
    commands: Commands<'_, '_>,
    pointer: Res<'_, PointerState>,
    just_pressed: Query<'_, '_, Entity, (With<Pressed>, Without<DragState>)>,
)
Expand description

On Pressed-without-DragState: attach DragState::Pending with the current pointer position as the press anchor.