[ type ] MouseWheelEvent

Description:

Mouse wheel event received by the onMouseWheel() handler callback.

Type: Object

Properties:

Name Type Description

target

object

The component that triggered the event.

type

string

Always wheel.

[button]

number

Button number. One of MouseButton enum values. Present when applicable.

scrollAmount

number

Number of units to scroll per wheel click.

rotation

number

Number of wheel "clicks" rotated. Can be zero until a full click is accumulated on high-resolution wheels.

[modifiers]

number

Keyboard modifiers (bitmask or flags).

[alt]

boolean

Indicates if ALT key was pressed.

[shift]

boolean

Indicates if SHIFT key was pressed.

[ctrl]

boolean

Indicates if CTRL key was pressed.

x

number

Mouse X position relative to the component.

y

number

Mouse Y position relative to the component.

screenX

number

Mouse X position relative to the screen.

screenY

number

Mouse Y position relative to the screen.

Also See: