Expand description
Touchpad pinches on Wayland. winit 0.30 delivers them only on macOS and iOS, so this listens for them on the connection winit already has: gestures go to the client that owns the window, and a connection of our own would never hear of them.
This crate holds the only unsafe call in the workspace, and goes away with a winit that
delivers these gestures on Wayland.
Structs§
- Pinch
Tracker - Turns the total scale a gesture reports into how much it changed since the last event.
Functions§
- listen
- Calls
on_pinchon another thread with how much each touchpad pinch changed, as a fraction. Off Wayland’s systems it does nothing.