pub type ScrollWheelEvent = ScrollEvent;👎Deprecated:
renamed to ScrollEvent
Expand description
The former name of ScrollEvent.
Aliased Type§
pub struct ScrollWheelEvent {
pub position: Point<Pixels>,
pub delta: ScrollDelta,
pub modifiers: Modifiers,
pub touch_phase: TouchPhase,
pub source: ScrollSource,
}Fields§
§position: Point<Pixels>The position the scroll targets. For touch pans this is where the pan started, so the whole gesture stays with the container it began on.
delta: ScrollDeltaThe change in scroll position for this event.
modifiers: ModifiersThe modifiers that were held down when the scroll happened.
touch_phase: TouchPhaseThe phase of the scroll gesture.
source: ScrollSourceThe kind of input that produced this scroll.