Module interaction

Module interaction 

Source
Expand description

Shared interaction helpers (pointer capture, dragging state).

Centralizes pointer tracking so components like Slider/ColorPicker can reuse the same capture/release semantics and avoid duplicating DOM handling.

Structs§

PointerState
Simple pointer tracking state.

Functions§

as_pointer_event
Extract a PointerEvent from a Dioxus pointer event payload.
end_pointer
Stop tracking when the active pointer finishes, releasing capture if present.
is_active_pointer
Whether the event belongs to the currently tracked pointer.
reset_pointer
Reset state manually (e.g., when unmounting).
start_pointer
Begin tracking a pointer and set capture on the target element.