API Reference

Class List

ElementTouchEvent

Extends: ElementInputEvent

Represents a TouchEvent fired on a ElementComponent.

Summary

Properties

changedTouches

The Touch objects representing individual points of contact whose states changed between the previous touch event and this one.

touch

The touch object that triggered the event.

touches

The Touch objects representing all current points of contact with the surface, regardless of target or changed status.

Inherited

Properties

camera

The CameraComponent that this event was originally raised via.

element

The ElementComponent that this event was originally raised on.

event

The MouseEvent or TouchEvent that was originally raised.

event

The MouseEvent or TouchEvent that was originally raised.

element

The ElementComponent that this event was originally raised on.

camera

The CameraComponent that this event was originally raised via.

event

The MouseEvent or TouchEvent that was originally raised.

element

The ElementComponent that this event was originally raised on.

camera

The CameraComponent that this event was originally raised via.

event

The MouseEvent or TouchEvent that was originally raised.

element

The ElementComponent that this event was originally raised on.

camera

The CameraComponent that this event was originally raised via.

Methods

stopPropagation

Stop propagation of the event to parent ElementComponents.

Details

Constructor

ElementTouchEvent(event, element, camera, x, y, touch)

Create an instance of an ElementTouchEvent.

Parameters

eventTouchEvent

The TouchEvent that was originally raised.

elementElementComponent

The ElementComponent that this event was originally raised on.

cameraCameraComponent

The CameraComponent that this event was originally raised via.

xnumber

The x coordinate of the touch that triggered the event.

ynumber

The y coordinate of the touch that triggered the event.

touchTouch

The touch object that triggered the event.

Properties

Touch[]changedTouches

The Touch objects representing individual points of contact whose states changed between the previous touch event and this one.

Touchtouch

The touch object that triggered the event.

Touch[]touches

The Touch objects representing all current points of contact with the surface, regardless of target or changed status.

Inherited

Properties

CameraComponentcamera

The CameraComponent that this event was originally raised via.

ElementComponentelement

The ElementComponent that this event was originally raised on.

MouseEvent, TouchEventevent

The MouseEvent or TouchEvent that was originally raised.

MouseEvent, TouchEventevent

The MouseEvent or TouchEvent that was originally raised.

ElementComponentelement

The ElementComponent that this event was originally raised on.

CameraComponentcamera

The CameraComponent that this event was originally raised via.

MouseEvent, TouchEventevent

The MouseEvent or TouchEvent that was originally raised.

ElementComponentelement

The ElementComponent that this event was originally raised on.

CameraComponentcamera

The CameraComponent that this event was originally raised via.

MouseEvent, TouchEventevent

The MouseEvent or TouchEvent that was originally raised.

ElementComponentelement

The ElementComponent that this event was originally raised on.

CameraComponentcamera

The CameraComponent that this event was originally raised via.

Methods

stopPropagation()

Stop propagation of the event to parent ElementComponents. This also stops propagation of the event to other event listeners of the original DOM Event.