Constructor
new ElementInputEvent(event, element, camera)
Create an instance of a pc.ElementInputEvent.
Parameters:
Name | Type | Description |
---|---|---|
event |
MouseEvent | TouchEvent | The MouseEvent or 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. |
Properties:
Name | Type | Description |
---|---|---|
event |
MouseEvent | TouchEvent | The MouseEvent or TouchEvent that was originally raised. |
element |
pc.ElementComponent | The ElementComponent that this event was originally raised on. |
- Source:
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.
- Source: