Represents an input event fired on a ElementComponent. When an event is raised on an ElementComponent it bubbles up to its parent ElementComponents unless we call stopPropagation().
new ElementInputEvent(
event: MouseEvent | TouchEvent,
element: ElementComponent,
camera: CameraComponent): ElementInputEvent
Create a new ElementInputEvent instance.
MouseEvent or TouchEvent that was originally raised.
MouseEvent | TouchEvent
The ElementComponent that this event was originally raised on.
The CameraComponent that this event was originally raised via.
camera: CameraComponent
The CameraComponent that this event was originally raised via.
element: ElementComponent
The ElementComponent that this event was originally raised on.
event: MouseEvent | TouchEvent
MouseEvent or TouchEvent that was originally raised.
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