Skip to main content

ScrollWheelEvent

Type Alias ScrollWheelEvent 

Source
pub type ScrollWheelEvent = ScrollEvent;
👎Deprecated:

use ScrollEvent instead

Expand description

Compatibility alias for the pre-0.12 GPUI scroll event name.

Aliased Type§

pub struct ScrollWheelEvent {
    pub position: Point<Pixels>,
    pub delta: ScrollDelta,
    pub modifiers: Modifiers,
    pub touch_phase: TouchPhase,
}

Fields§

§position: Point<Pixels>

The position of the mouse on the window.

§delta: ScrollDelta

The change in scroll wheel position for this event.

§modifiers: Modifiers

The modifiers that were held down when the mouse was moved.

§touch_phase: TouchPhase

The phase of the touch event.