interface NativeMouseEvent {
    altKey: boolean;
    button: number;
    buttons: number;
    clientX: number;
    clientY: number;
    ctrlKey: boolean;
    detail: number;
    metaKey: boolean;
    offsetX: number;
    offsetY: number;
    pageX: number;
    pageY: number;
    relatedTarget: null | number | Component<unknown, {}, any> & Readonly<NativeMethods>;
    screenX: number;
    screenY: number;
    shiftKey: boolean;
    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.

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.

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.

x: number

Alias for NativeMouseEvent.clientX

y: number

Alias for NativeMouseEvent.clientY