A number representing which buttons that are pressed on the mouse when a mouse event is triggered. Simultaneous buttons gives a combined value.
0: No button or un-initialized
1: Primary button (usually the left button)
2: Secondary button (usually the right button)
4: Auxiliary button (usually the mouse wheel button or middle button)
8: 4th button (typically the "Browser Back" button)
16 : 5th button (typically the "Browser Forward" button)
The X coordinate of the mouse pointer in local (DOM content) coordinates.
The Y coordinate of the mouse pointer in local (DOM content) coordinates.
Returns true if the control key was down when the mouse event was fired.
If the event was related to a media resource in the publication such as an image, audio or video resource. It contains additional information about the media resource and methods to access media content.
Returns true if the meta key was down when the mouse event was fired.
The X coordinate of the mouse pointer relative to the whole document.
The Y coordinate of the mouse pointer relative to the whole document.
Describes how the reader document acted on the event.
The X coordinate of the mouse pointer in global (screen) coordinates.
The Y coordinate of the mouse pointer in global (screen) coordinates.
Contains additional information about the original event target, such as the targeted node in the reader document.
If the event was emitted due to a user generated event.
Note that if this value is true, the engine event listener might still be called in an untrusted execution context due to proxying through iframes, etc. Use isTrusted() to verify if the current execution context is trusted.
Generated using TypeDoc
On "pointerdown", "pointerup", and "click" , this property indicates the device button whose state change caused the event to fire. -1: Neither buttons nor touch/pen contact changed since last event. 0: Left Mouse, Touch contact, Pen contact. 1: Middle Mouse. 2: Right Mouse, Pen barrel button. 3: X1 (back) Mouse 4: X2 (forward) Mouse 5: Pen eraser button