redraw/dom/event/wheel

The WheelEvent interface represents events that occur due to the user moving a mouse wheel or similar input device.

This is the standard wheel event interface to use. Old versions of browsers implemented the non-standard and non-cross-browser-compatible MouseWheelEvent and MouseScrollEvent interfaces. Use this interface and avoid the non-standard ones.

Don’t confuse the wheel event with the scroll event:

Types

pub type WheelEvent

Values

pub const as_event: fn(WheelEvent) -> event.Event

WheelEvent inherits Event.

pub const as_mouse_event: fn(WheelEvent) -> mouse.MouseEvent

WheelEvent inherits MouseEvent.

pub const as_ui_event: fn(WheelEvent) -> ui.UIEvent

WheelEvent inherits UIEvent.

pub fn delta_mode(event: WheelEvent) -> Int
pub fn delta_x(event: WheelEvent) -> Float
pub fn delta_y(event: WheelEvent) -> Float
pub fn delta_z(event: WheelEvent) -> Float
Search Document