interface NativePointerEvent {
    altKey: boolean;
    button: number;
    buttons: number;
    clientX: number;
    clientY: number;
    ctrlKey: boolean;
    detail: number;
    height: number;
    isPrimary: boolean;
    metaKey: boolean;
    offsetX: number;
    offsetY: number;
    pageX: number;
    pageY: number;
    pointerId: number;
    pointerType: string;
    pressure: number;
    relatedTarget: null | number | Component<unknown, {}, any> & Readonly<NativeMethods>;
    screenX: number;
    screenY: number;
    shiftKey: boolean;
    tangentialPressure: number;
    tiltX: number;
    tiltY: number;
    twist: number;
    width: number;
    x: number;
    y: number;
}

Hierarchy (view full)

Properties

altKey: boolean

Returns 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

Returns true if the control key was down when the mouse event was fired.

detail: number

Returns a long with details about the event, depending on the event type.

height: number

The height (magnitude on the Y axis), in CSS pixels, of the contact geometry of the pointer.

isPrimary: boolean

Indicates if the pointer represents the primary pointer of this pointer type.

metaKey: boolean

Returns true if the meta key was down when the mouse event was fired.

offsetX: number

The X coordinate of the mouse pointer between that event and the padding edge of the target node

offsetY: number

The Y coordinate of the mouse pointer between that event and 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.

pointerId: number

A unique identifier for the pointer causing the event.

pointerType: string

Indicates the device type that caused the event (mouse, pen, touch, etc.)

pressure: number

The normalized pressure of the pointer input in the range 0 to 1, where 0 and 1 represent the minimum and maximum pressure the hardware is capable of detecting, respectively.

relatedTarget: null | number | Component<unknown, {}, any> & Readonly<NativeMethods>

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

Returns true if the shift key was down when the mouse event was fired.

tangentialPressure: number

The normalized tangential pressure of the pointer input (also known as barrel pressure or cylinder stress) in the range -1 to 1, where 0 is the neutral position of the control.

tiltX: number

The plane angle (in degrees, in the range of -90 to 90) between the Y–Z plane and the plane containing both the pointer (e.g. pen stylus) axis and the Y axis.

tiltY: number

The plane angle (in degrees, in the range of -90 to 90) between the X–Z plane and the plane containing both the pointer (e.g. pen stylus) axis and the X axis.

twist: number

The clockwise rotation of the pointer (e.g. pen stylus) around its major axis in degrees, with a value in the range 0 to 359.

width: number

The width (magnitude on the X axis), in CSS pixels, of the contact geometry of the pointer

x: number

Alias for NativeMouseEvent.clientX

y: number

Alias for NativeMouseEvent.clientY