Skip to main content

Interface: M2PointerEvent

Describes an interaction between the pointer (mouse, touches) and a node.

Remarks​

I would have named it PointerEvent, but that would collide with the existing DOM PointerEvent.

Extends​

Properties​

buttons​

buttons: number

Buttons being pressed when event was fired. Taken from DOM MouseEvent.buttons

Defined in​

m2c2kit/packages/core/src/M2PointerEvent.ts:14


handled?​

optional handled: boolean

Has the event been taken care of by the listener and not be dispatched to other targets?

Inherited from​

M2NodeEvent.handled

Defined in​

m2c2kit/packages/core/src/M2Event.ts:26


iso8601Timestamp​

iso8601Timestamp: string

Timestamp of th event, from new Date().toISOString()

Inherited from​

M2NodeEvent.iso8601Timestamp

Defined in​

m2c2kit/packages/core/src/M2Event.ts:30


point​

point: Point

Point that was tapped on node, relative to the node coordinate system

Defined in​

m2c2kit/packages/core/src/M2PointerEvent.ts:12


sequence?​

optional sequence: number

Sequence number of event.

Remarks​

Sequence number is guaranteed to reflect order of events, but not necessarily contiguous, e.g., could be 1, 2, 5, 10, 11, 24.

Inherited from​

M2NodeEvent.sequence

Defined in​

m2c2kit/packages/core/src/M2Event.ts:35


target​

target: string | M2Node

The M2Node on which the event occurred. If the event has gone through serialization, the string will be the node's UUID.

Inherited from​

M2NodeEvent.target

Defined in​

m2c2kit/packages/core/src/M2NodeEvent.ts:7


timestamp​

timestamp: number

Timestamp of the event, from performance.now()

Inherited from​

M2NodeEvent.timestamp

Defined in​

m2c2kit/packages/core/src/M2Event.ts:28


type​

type: string

Type of event.

Inherited from​

M2NodeEvent.type

Defined in​

m2c2kit/packages/core/src/M2Event.ts:22