Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

MouseEvent

Events that occur due to the user interacting with a pointing device (such as a mouse). Common events using this interface include click, dblclick, mouseup, mousedown.

interface MouseEvent extends UIEvent {
readonly altKey: boolean;
readonly button: number;
readonly buttons: number;
readonly clientX: number;
readonly clientY: number;
readonly ctrlKey: boolean;
readonly metaKey: boolean;
readonly movementX: number;
readonly movementY: number;
readonly offsetX: number;
readonly offsetY: number;
readonly pageX: number;
readonly pageY: number;
readonly relatedTarget: EventTarget | null;
readonly screenX: number;
readonly screenY: number;
readonly shiftKey: boolean;
readonly x: number;
readonly y: number;
getModifierState(keyArg: string): boolean;
initMouseEvent(
typeArg: string,
canBubbleArg: boolean,
cancelableArg: boolean,
viewArg: Window,
detailArg: number,
screenXArg: number,
screenYArg: number,
clientXArg: number,
clientYArg: number,
ctrlKeyArg: boolean,
altKeyArg: boolean,
shiftKeyArg: boolean,
metaKeyArg: boolean,
buttonArg: number,
relatedTargetArg: EventTarget | null,
): void;
}
var MouseEvent: {
prototype: MouseEvent;
new (type: string, eventInitDict?: MouseEventInit): MouseEvent;
}
;

§Extends

§Properties

§
readonly altKey: boolean
[src]
§
readonly button: number
[src]
§
readonly buttons: number
[src]
§
readonly clientX: number
[src]
§
readonly clientY: number
[src]
§
readonly ctrlKey: boolean
[src]
§
readonly metaKey: boolean
[src]
§
readonly movementX: number
[src]
§
readonly movementY: number
[src]
§
readonly offsetX: number
[src]
§
readonly offsetY: number
[src]
§
readonly pageX: number
[src]
§
readonly pageY: number
[src]
§
readonly relatedTarget: EventTarget | null
[src]
§
readonly screenX: number
[src]
§
readonly screenY: number
[src]
§
readonly shiftKey: boolean
[src]
§
readonly x: number
[src]
§
readonly y: number
[src]

§Methods

§
getModifierState(keyArg: string): boolean
[src]
§
initMouseEvent(
typeArg: string,
canBubbleArg: boolean,
cancelableArg: boolean,
viewArg: Window,
detailArg: number,
screenXArg: number,
screenYArg: number,
clientXArg: number,
clientYArg: number,
ctrlKeyArg: boolean,
altKeyArg: boolean,
shiftKeyArg: boolean,
metaKeyArg: boolean,
buttonArg: number,
relatedTargetArg: EventTarget | null,
): void
[src]