Skip to main content

Interface: InteractionEvents<T, R, RD>

Events.InteractionEvents

Represents interaction events. These events propagate to parents.

Typeparam

T - The primary target type.

Typeparam

R - The related target type.

Typeparam

RD - The related target type on drag events.

Type parameters

NameType
TObject3D
RObject3D
RDObject3D | InstancedMeshEntity

Properties

blur

blur: FocusEventExt<T, R>

Event triggered when target loses focus.

Defined in

src/events/Events.ts:74


click

click: PointerEventExt<T, R>

Event triggered when a click event occurs.

Defined in

src/events/Events.ts:62


dblclick

dblclick: PointerEventExt<T, R>

Event triggered when a double click event occurs.

Defined in

src/events/Events.ts:64


drag

drag: DragEventExt<T, RD>

Event triggered when the target is dragged.

Defined in

src/events/Events.ts:80


dragcancel

dragcancel: DragEventExt<T, RD>

Event triggered when dragging is canceled (Can be canceled pressing 'ESC'). This is triggered on target and dropTarget.

Defined in

src/events/Events.ts:86


dragend

dragend: DragEventExt<T, RD>

Event triggered when dragging ends.

Defined in

src/events/Events.ts:84


dragenter

dragenter: DragEventExt<T, RD>

Event triggered when a draggable object enters a drop target.

Defined in

src/events/Events.ts:88


dragleave

dragleave: DragEventExt<T, RD>

Event triggered when a draggable object leaves a drop target.

Defined in

src/events/Events.ts:95


dragover

dragover: DragEventExt<T, RD>

Event triggered when a draggable object moves over the drop target. Triggers every frame if the scene has 'continuousRaycastingDropTarget' equal to true.

Defined in

src/events/Events.ts:93


dragstart

dragstart: DragEventExt<T, RD>

Event triggered when dragging starts.

Defined in

src/events/Events.ts:82


drop

drop: DragEventExt<T, RD>

Event triggered when a draggable object is dropped onto a drop target.

Defined in

src/events/Events.ts:97


focus

focus: FocusEventExt<T, R>

Event triggered when target gains focus.

Defined in

src/events/Events.ts:72


focusin

focusin: FocusEventExt<T, R>

Event triggered when target gains focus (no propagation).

Defined in

src/events/Events.ts:68


focusout

focusout: FocusEventExt<T, R>

Event triggered when target loses focus (no propagation).

Defined in

src/events/Events.ts:70


keydown

keydown: KeyboardEventExt<T>

Event triggered on the focused object when a key is pressed.

Defined in

src/events/Events.ts:76


keyup

keyup: KeyboardEventExt<T>

Event triggered on the focused object when a key is released.

Defined in

src/events/Events.ts:78


pointerdown

pointerdown: PointerEventExt<T, R>

Event triggered when a pointer button is pressed.

Defined in

src/events/Events.ts:56


pointerenter

pointerenter: PointerEventExt<T, R>

Event triggered when a pointer enters the target (no propagation).

Defined in

src/events/Events.ts:48


pointerintersection

pointerintersection: PointerIntersectionEvent<T>

Event triggered if pointer is on target. Triggers every frame and only works if the scene has 'continuousRaycasting' equal to true.

Defined in

src/events/Events.ts:60


pointerleave

pointerleave: PointerEventExt<T, R>

Event triggered when a pointer leaves the target (no propagation).

Defined in

src/events/Events.ts:52


pointermove

pointermove: PointerEventExt<T, R>

Event triggered when a pointer moves over the target.

Defined in

src/events/Events.ts:54


pointerout

pointerout: PointerEventExt<T, R>

Event triggered when a pointer leaves the target.

Defined in

src/events/Events.ts:50


pointerover

pointerover: PointerEventExt<T, R>

Event triggered when a pointer enters the target.

Defined in

src/events/Events.ts:46


pointerup

pointerup: PointerEventExt<T, R>

Event triggered when a pointer button is released.

Defined in

src/events/Events.ts:58


wheel

wheel: WheelEventExt<T, Object3D<Object3DEventMap>>

Event triggered when scrolling the mouse wheel.

Defined in

src/events/Events.ts:66