pub enum ReportedChange {
Show 13 variants
Add,
Remove,
Hover {
buttons: i64,
},
Down {
buttons: i64,
},
Move {
buttons: i64,
},
Up {
buttons: i64,
},
Cancel {
buttons: i64,
},
Scroll {
delta: [f64; 2],
},
ScrollInertiaCancel,
Scale {
scale: f64,
},
PanZoomStart,
PanZoomUpdate {
pan: [f64; 2],
scale: f64,
rotation: f64,
},
PanZoomEnd,
}Expand description
How a device changed, with what the framework takes of that change.
Variants§
Add
The device started being tracked, such as the mouse coming into the view.
Remove
The device is no longer tracked.
Hover
It moved without touching, with buttons held, such as a pen’s barrel button.
Fields
Down
It touched, or its first button went down, with buttons held.
Fields
Move
It moved while touching, or the buttons it holds changed, to buttons.
Fields
Up
It stopped touching, or its last button was released, with buttons still held.
Fields
Cancel
The system took its press away, with buttons held.
Fields
Scroll
A wheel or a trackpad scrolled by delta, in physical pixels, positive towards the
content’s end.
ScrollInertiaCancel
A touch stopped the system’s own scrolling momentum.
Scale
A zoom by scale, such as a browser’s for a wheel turned with Control held.
PanZoomStart
A trackpad gesture, panning, zooming and rotating together, started.
PanZoomUpdate
The gesture so far, each the total since it started: pan in physical pixels, scale
from 1.0, and rotation in radians, clockwise, from 0.0.
PanZoomEnd
The gesture ended.