Interface WheelData

Interaction data for a single pointing device with buttons and a wheel at a single position. See: https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent (documentation extracted from here)

interface WheelData {
    altKey: boolean;
    button: number;
    buttons: number;
    clientX: number;
    clientY: number;
    ctrlKey: boolean;
    currentTarget: null | EventTarget;
    deltaMode: number;
    deltaX: number;
    deltaY: number;
    deltaZ: number;
    metaKey: boolean;
    movementX: number;
    movementY: number;
    offsetX: number;
    offsetY: number;
    pageX: number;
    pageY: number;
    relatedTarget: null | EventTarget;
    screenX: number;
    screenY: number;
    shiftKey: boolean;
    target: null | EventTarget;
    timeStamp: number;
}

Hierarchy

Implemented by

Properties

altKey: boolean

True if the alt key was down when the mouse event was fired.

button: number

The button number that was pressed (if applicable) when the mouse event was fired.

buttons: number

The buttons being depressed (if any) when the mouse event was fired.

clientX: number

The X coordinate of the mouse pointer in local (DOM content) coordinates.

clientY: number

The Y coordinate of the mouse pointer in local (DOM content) coordinates.

ctrlKey: boolean

True if the control key was down when the mouse event was fired.

currentTarget: null | EventTarget

A reference to the currently registered target for the event. This is the object to which the event is currently slated to be sent. It's possible this has been changed along the way through retargeting.

deltaMode: number

Returns an unsigned long representing the unit of the delta* values' scroll amount. See https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaMode

deltaX: number

Returns a double representing the horizontal scroll amount.

deltaY: number

Returns a double representing the vertical scroll amount.

deltaZ: number

Returns a double representing the scroll amount for the z-axis.

metaKey: boolean

True if the meta key was down when the mouse event was fired.

movementX: number

The X coordinate of the mouse pointer relative to the position of the last mousemove event.

movementY: number

The Y coordinate of the mouse pointer relative to the position of the last mousemove event.

offsetX: number

The X coordinate of the mouse pointer relative to the position of the padding edge of the target node.

offsetY: number

The Y coordinate of the mouse pointer relative to the position of the padding edge of the target node.

pageX: number

The X coordinate of the mouse pointer relative to the whole document.

pageY: number

The Y coordinate of the mouse pointer relative to the whole document.

relatedTarget: null | EventTarget

The secondary target for the event, if there is one.

screenX: number

The X coordinate of the mouse pointer in global (screen) coordinates.

screenY: number

The Y coordinate of the mouse pointer in global (screen) coordinates.

shiftKey: boolean

True if the shift key was down when the mouse event was fired.

target: null | EventTarget

A reference to the target to which the event was originally dispatched.

timeStamp: number

The time at which the event was created (in milliseconds). By specification, this value is time since epoch—but in reality, browsers' definitions vary. In addition, work is underway to change this to be a DOMHighResTimeStamp instead.

Generated using TypeDoc