Canvas Events.

interface CanvasEventMap {
    click: MouseEvent;
    contextmenu: PointerEvent;
    dblclick: MouseEvent;
    mousedown: MouseEvent;
    mouseleave: MouseEvent;
    mousemove: MouseEvent;
    mouseup: MouseEvent;
    pointercancel: PointerEvent;
    pointerdown: PointerEvent;
    pointerleave: PointerEvent;
    pointermove: PointerEvent;
    pointerup: PointerEvent;
    touchcancel: TouchEvent;
    touchend: TouchEvent;
    touchmove: TouchEvent;
    touchstart: TouchEvent;
    wheel: MouseEvent;
}

Properties

click: MouseEvent

Event that fires on mouse click.

contextmenu: PointerEvent

Event that fires when the user attempts to open a context menu.

dblclick: MouseEvent

Event that fires on mouse double click.

mousedown: MouseEvent

Event that fires on mouse button is down.

mouseleave: MouseEvent

Event that fires on mouse leave.

mousemove: MouseEvent

Event that fires on mouse move.

mouseup: MouseEvent

Event that fires on mouse button is up.

pointercancel: PointerEvent

Event is fired when the browser determines that there are unlikely to be any more pointer events.

pointerdown: PointerEvent

Event that fires on mouse button is down.

pointerleave: PointerEvent

Event that fires on mouse leave.

pointermove: PointerEvent

Event that fires on mouse move.

pointerup: PointerEvent

Event that fires on mouse button is up.

touchcancel: TouchEvent

Event that fires touch is canceled.

touchend: TouchEvent

Event that fires touch is ended.

touchmove: TouchEvent

Event that fires touch is moving.

touchstart: TouchEvent

Event that fires when touch is started.

wheel: MouseEvent

Event that fires when mouse wheel is moving.