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§
- Pointer
State - Simple pointer tracking state.
Functions§
- as_
pointer_ event - Extract a
PointerEventfrom 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.