API Reference

Class List

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

Summary

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 ElementComponents.

Details

Constructor

ElementInputEvent(event, element, camera)

Create a new ElementInputEvent instance.

Parameters

eventMouseEvent, TouchEvent

The MouseEvent or TouchEvent that was originally raised.

elementElementComponent

The ElementComponent that this event was originally raised on.

cameraCameraComponent

The CameraComponent that this event was originally raised via.

Properties

CameraComponentcamera

The CameraComponent that this event was originally raised via.

ElementComponentelement

The ElementComponent that this event was originally raised on.

MouseEvent, TouchEventevent

The MouseEvent or TouchEvent that was originally raised.

Methods

stopPropagation()

Stop propagation of the event to parent ElementComponents. This also stops propagation of the event to other event listeners of the original DOM Event.