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
Name | Type |
---|---|
T | Object3D |
R | Object3D |
RD | Object3D | InstancedMeshEntity |
Properties
blur
• blur: FocusEventExt
<T
, R
>
Event triggered when target loses focus.
Defined in
click
• click: PointerEventExt
<T
, R
>
Event triggered when a click event occurs.
Defined in
dblclick
• dblclick: PointerEventExt
<T
, R
>
Event triggered when a double click event occurs.
Defined in
drag
• drag: DragEventExt
<T
, RD
>
Event triggered when the target is dragged.
Defined in
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
dragend
• dragend: DragEventExt
<T
, RD
>
Event triggered when dragging ends.
Defined in
dragenter
• dragenter: DragEventExt
<T
, RD
>
Event triggered when a draggable object enters a drop target.
Defined in
dragleave
• dragleave: DragEventExt
<T
, RD
>
Event triggered when a draggable object leaves a drop target.
Defined in
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
dragstart
• dragstart: DragEventExt
<T
, RD
>
Event triggered when dragging starts.
Defined in
drop
• drop: DragEventExt
<T
, RD
>
Event triggered when a draggable object is dropped onto a drop target.
Defined in
focus
• focus: FocusEventExt
<T
, R
>
Event triggered when target gains focus.
Defined in
focusin
• focusin: FocusEventExt
<T
, R
>
Event triggered when target gains focus (no propagation).
Defined in
focusout
• focusout: FocusEventExt
<T
, R
>
Event triggered when target loses focus (no propagation).
Defined in
keydown
• keydown: KeyboardEventExt
<T
>
Event triggered on the focused object when a key is pressed.
Defined in
keyup
• keyup: KeyboardEventExt
<T
>
Event triggered on the focused object when a key is released.
Defined in
pointerdown
• pointerdown: PointerEventExt
<T
, R
>
Event triggered when a pointer button is pressed.
Defined in
pointerenter
• pointerenter: PointerEventExt
<T
, R
>
Event triggered when a pointer enters the target (no propagation).
Defined in
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
pointerleave
• pointerleave: PointerEventExt
<T
, R
>
Event triggered when a pointer leaves the target (no propagation).
Defined in
pointermove
• pointermove: PointerEventExt
<T
, R
>
Event triggered when a pointer moves over the target.
Defined in
pointerout
• pointerout: PointerEventExt
<T
, R
>
Event triggered when a pointer leaves the target.
Defined in
pointerover
• pointerover: PointerEventExt
<T
, R
>
Event triggered when a pointer enters the target.
Defined in
pointerup
• pointerup: PointerEventExt
<T
, R
>
Event triggered when a pointer button is released.
Defined in
wheel
• wheel: WheelEventExt
<T
, Object3D
<Object3DEventMap
>>
Event triggered when scrolling the mouse wheel.