Interface: TapEvent
Describes an interaction of a pointer (mouse, touches) pressing a node.
Remarks
Unlike M2PointerEvent, TapEvent considers how the pointer, while in the down state, moves in relation to the bounds of the node.
Extends
Properties
buttons
buttons:
number
Buttons being pressed when event was fired. Taken from DOM MouseEvent.buttons
Source
handled?
optional
handled:boolean
Has the event been taken care of by the listener and not be dispatched to other targets?
Inherited from
Source
iso8601Timestamp
iso8601Timestamp:
string
Timestamp of th event, from new Date().toISOString()
Inherited from
Source
point
point:
Point
Point that was tapped on node, relative to the node coordinate system
Source
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
Source
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
Source
timestamp
timestamp:
number
Timestamp of the event, from performance.now()
Inherited from
Source
type
type:
string
Type of event.