pc.ElementTouchEvent
Extends: pc.ElementInputEvent
Represents a TouchEvent fired on a pc.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. |
Methods
| stopPropagation | Stop propagation of the event to parent pc.ElementComponents. |
Details
Constructor
ElementTouchEvent(event, element, camera, x, y, touch)
Create an instance of a pc.ElementTouchEvent.
Parameters
| 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. |
| touch | Touch | The touch object that triggered the event. |
Properties
The Touch objects representing individual points of contact whose states changed between the previous touch event and this one.
The Touch objects representing all current points of contact with the surface, regardless of target or changed status.
Inherited
Properties
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.