Events and pointer input
Follow input through the view tree and handle mouse, touch, gestures, scrolling, and zoom without assuming every device behaves alike.
In this section
- Follow an event through Xui - Follow hit testing, tunnel and bubble delivery, capture, and event contracts.
- Mouse interaction on desktop - Handle desktop hover and pressed contacts without assuming touch hover.
- Touch interaction on mobile - Track contact identities and clean up cancelled multitouch sequences.
- Shared pointer gestures - Build a captured drag and cooperate with ancestor scrolling.
- Scrolling and trackpads - Use scrolling containers and distinguish wheel data from native momentum.
- Zoom and coordinate conversion - Apply bounded magnification and map input between coordinate spaces.
Explore the full Reference for related topics.