Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

button: number

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

buttons: number

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)
cancelable?: boolean
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.

isPrimary: boolean
isTrusted?: boolean

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.

metaKey: boolean

Returns true if the meta key was down when the mouse event was fired.

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.

pointerId: number
pointerType: string
readerDocumentEventState: ReaderDocumentEventState

Describes how the reader document acted on the event.

readerView: IReaderView
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.

Contains additional information about the original event target, such as the targeted node in the reader document.

userGenerated: boolean

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