Skip to content

@jsvision/core / WheelEvent

Interface: WheelEvent

Defined in: input/events.ts:41

A wheel/scroll report. A wheel report is never delivered as a MouseEvent.

The shift/alt/ctrl flags report the modifiers held during the scroll. They let you distinguish, e.g., a plain vertical wheel from a Shift+wheel (a common horizontal-scroll fallback on terminals that do not send dedicated left/right wheel reports).

Properties

alt

readonly alt: boolean

Defined in: input/events.ts:49

Meta/Alt held during the wheel report.


ctrl

readonly ctrl: boolean

Defined in: input/events.ts:51

Ctrl held during the wheel report.


dir

readonly dir: "down" | "up" | "left" | "right"

Defined in: input/events.ts:43


shift

readonly shift: boolean

Defined in: input/events.ts:47

Shift held during the wheel report.


type

readonly type: "wheel"

Defined in: input/events.ts:42


x

readonly x: number

Defined in: input/events.ts:44


y

readonly y: number

Defined in: input/events.ts:45