Represents a TouchEvent fired on a ElementComponent.
new ElementTouchEvent(
event: TouchEvent,
element: ElementComponent,
camera: CameraComponent,
x: number,
y: number,
touch: Touch): ElementTouchEvent
Create an instance of an ElementTouchEvent.
TouchEvent
The TouchEvent that was originally raised.
The ElementComponent that this event was originally raised on.
The CameraComponent that this event was originally raised via.
number
The x coordinate of the touch that triggered the event.
number
The y coordinate of the touch that triggered the event.
Touch
The touch object that triggered the event.
camera: CameraComponent
The CameraComponent that this event was originally raised via.
changedTouches: Touch[];
The Touch objects representing individual points of contact whose states changed between the previous touch event and this one.
element: ElementComponent
The ElementComponent that this event was originally raised on.
event: MouseEvent | TouchEvent
MouseEvent or TouchEvent that was originally raised.
touch: Touch
The touch object that triggered the event.
touches: Touch[];
The Touch objects representing all current points of contact with the surface, regardless of target or changed status.
stopPropagation(): void
Stop propagation of the event to parent ElementComponents. This also stops propagation of the event to other event listeners of the original DOM Event.
void