Constructor
new ElementTouchEvent(event, element, camera, x, y, input)
Create an instance of a pc.ElementTouchEvent.
Parameters:
Name | Type | Description |
---|---|---|
event |
TouchEvent | The TouchEvent that was originally raised. |
element |
pc.ElementComponent | The ElementComponent that this event was originally raised on. |
camera |
pc.CameraComponent | The CameraComponent that this event was originally raised via. |
x |
Number | The x coordinate of the touch that triggered the event |
y |
Number | The y coordinate of the touch that triggered the event |
input |
pc.ElementInput | The pc.ElementInput instance |
Properties:
Name | Type | Description |
---|---|---|
touches |
Array.<Touch> | The Touch objects representing all current points of contact with the surface, regardless of target or changed status. |
changedTouches |
Array.<Touch> | The Touch objects representing individual points of contact whose states changed between the previous touch event and this one. |
- Source:
Extends
Methods
stopPropagation()
Stop propagation of the event to parent pc.ElementComponents. This also stops propagation of the event to other event listeners of the original DOM Event.
- Inherited From:
- Source: