constructor(event: WheelEvent)
View sourceSets pointerType to mouse, maps the event offsets to position, and
creates delta from the event’s three wheel-axis values.
Class
Captures the wheel data emitted by a browser wheel event.
The DOM pointer bridge identifies wheel input as a mouse event, stores the
event’s local offset as Vector2 position, and stores the browser’s
three-dimensional wheel delta in a Vector3.
const wheel = new PointerWheel(event)
if (wheel.pointerType === 'mouse') console.log(wheel.delta)constructor(event: WheelEvent)Sets pointerType to mouse, maps the event offsets to position, and
creates delta from the event’s three wheel-axis values.
The fixed pointer type for wheel input.
Local wheel coordinates copied from offsetX and offsetY.
Default: ...
Wheel movement copied from deltaX, deltaY, and deltaZ.