Readonly
altTrue if the alt key was down when the mouse event was fired.
Readonly
buttonThe button number that was pressed (if applicable) when the mouse event was fired.
Readonly
buttonsThe buttons being depressed (if any) when the mouse event was fired.
Readonly
clientXThe X coordinate of the mouse pointer in local (DOM content) coordinates.
Readonly
clientYThe Y coordinate of the mouse pointer in local (DOM content) coordinates.
Readonly
ctrlTrue if the control key was down when the mouse event was fired.
Readonly
currentA 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.
Readonly
metaTrue if the meta key was down when the mouse event was fired.
Readonly
movementXThe X coordinate of the mouse pointer relative to the position of the last mousemove event.
Readonly
movementYThe Y coordinate of the mouse pointer relative to the position of the last mousemove event.
Readonly
offsetXThe X coordinate of the mouse pointer relative to the position of the padding edge of the target node.
Readonly
offsetYThe Y coordinate of the mouse pointer relative to the position of the padding edge of the target node.
Readonly
pageXThe X coordinate of the mouse pointer relative to the whole document.
Readonly
pageYThe Y coordinate of the mouse pointer relative to the whole document.
Readonly
relatedThe secondary target for the event, if there is one.
Readonly
screenXThe X coordinate of the mouse pointer in global (screen) coordinates.
Readonly
screenYThe Y coordinate of the mouse pointer in global (screen) coordinates.
Readonly
shiftTrue if the shift key was down when the mouse event was fired.
Readonly
targetA reference to the target to which the event was originally dispatched.
Readonly
timeThe 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
Interaction data for a single pointing device with buttons at a single position. See: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent (documentation extracted from here)