Skip to main content
Version: 4.1

Interface: TouchMouseEventData

The TouchMouseEventData interface represents events that occur due to the user interacting with a pointing device (such as a mouse). See MouseEvent

Properties

clientX

Readonly clientX: Coordinate

The X coordinate of the mouse pointer in local (DOM content) coordinates.


clientY

Readonly clientY: Coordinate

The Y coordinate of the mouse pointer in local (DOM content) coordinates.


pageX

Readonly pageX: Coordinate

The X coordinate of the mouse pointer relative to the whole document.


pageY

Readonly pageY: Coordinate

The Y coordinate of the mouse pointer relative to the whole document.


screenX

Readonly screenX: Coordinate

The X coordinate of the mouse pointer in global (screen) coordinates.


screenY

Readonly screenY: Coordinate

The Y coordinate of the mouse pointer in global (screen) coordinates.


localX

Readonly localX: Coordinate

The X coordinate of the mouse pointer relative to the chart / price axis / time axis canvas element.


localY

Readonly localY: Coordinate

The Y coordinate of the mouse pointer relative to the chart / price axis / time axis canvas element.


ctrlKey

Readonly ctrlKey: boolean

Returns a boolean value that is true if the Ctrl key was active when the key event was generated.


altKey

Readonly altKey: boolean

Returns a boolean value that is true if the Alt (Option or ⌥ on macOS) key was active when the key event was generated.


shiftKey

Readonly shiftKey: boolean

Returns a boolean value that is true if the Shift key was active when the key event was generated.


metaKey

Readonly metaKey: boolean

Returns a boolean value that is true if the Meta key (on Mac keyboards, the ⌘ Command key; on Windows keyboards, the Windows key (⊞)) was active when the key event was generated.