Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MouseEventReceiverInterface

Mouse and touch events

Hierarchy

  • MouseEventReceiverInterface

Index

Methods

Optional onClick

  • Called for mouse clicks and taps

    Parameters

    Returns boolean

    Return true to consume the event, false to pass it on

Optional onDoubleClick

  • Called for double clicks and double taps

    Parameters

    Returns boolean

    Return true to consume the event, false to pass it on

Optional onDrag

  • Called during dragging

    Parameters

    Returns void

Optional onDragCancel

  • onDragCancel(instanceId?: number): void
  • Called when the user cancels dragging by pressing the escape key

    Parameters

    • Optional instanceId: number

      The index of the instance if the event occurred on an InstancedMesh.

    Returns void

Optional onDragEnd

  • onDragEnd(instanceId?: number): void
  • Called when the user releases the mouse button after dragging

    Parameters

    • Optional instanceId: number

      The index of the instance if the event occurred on an InstancedMesh.

    Returns void

Optional onDragStart

  • Called when the user starts dragging the target

    Parameters

    Returns boolean

Optional onHold

  • Called for click-and-hold and touch-and-hold

    Parameters

    Returns boolean

    Return true to consume the event, false to pass it on

Optional onMouseMove

  • Called when the mouse is moved

    Parameters

    Returns void

Optional onMouseOut

  • Called when the mouse pointer leaves the target

    Parameters

    Returns void

Optional onMouseOver

  • Called when the mouse is hovered on the target

    Parameters

    Returns void

Optional onMouseWheel

  • Called when the mouse wheel is turned

    Parameters

    • pos: MouseEventCoordinatesInterface

      Mouse position

    • delta: number

      Mouse wheel delta

    • Optional instanceId: number

      The index of the instance if the event occurred on an InstancedMesh.

    Returns boolean

Generated using TypeDoc