Skip to content

@jsvision/core / WheelEvent

Interface: WheelEvent

Defined in: input/events.ts:57

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:65

Meta/Alt held during the wheel report.


ctrl

readonly ctrl: boolean

Defined in: input/events.ts:67

Ctrl held during the wheel report.


dir

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

Defined in: input/events.ts:59


shift

readonly shift: boolean

Defined in: input/events.ts:63

Shift held during the wheel report.


type

readonly type: "wheel"

Defined in: input/events.ts:58


x

readonly x: number

Defined in: input/events.ts:60


y

readonly y: number

Defined in: input/events.ts:61