Mirror Engine
V7
How To
Mirror Engine Logo

Mirror Engine API


Mirror Engine API / ElementInputEvent

Class: ElementInputEvent

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().

Extended by

Constructors

new ElementInputEvent()

new ElementInputEvent(
   event: MouseEvent | TouchEvent,
   element: ElementComponent,
   camera: CameraComponent): ElementInputEvent

Create a new ElementInputEvent instance.

Parameters

event

MouseEvent or TouchEvent that was originally raised.

MouseEvent | TouchEvent

element

ElementComponent

The ElementComponent that this event was originally raised on.

camera

CameraComponent

The CameraComponent that this event was originally raised via.

Returns

ElementInputEvent

Properties

camera

camera: CameraComponent

The CameraComponent that this event was originally raised via.


element

element: ElementComponent

The ElementComponent that this event was originally raised on.


event

event: MouseEvent | TouchEvent

MouseEvent or TouchEvent that was originally raised.

Methods

stopPropagation()

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.

Returns

void

Mirror Engine Logo