Interface MouseEventReceiverInterface

Mouse and touch events

Hierarchy

  • MouseEventReceiverInterface

Methods

  • Called for mouse clicks and taps

    Returns

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

    Parameters

    Returns boolean

  • Called for double clicks and double taps

    Returns

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

    Parameters

    Returns boolean

  • Called during dragging

    Parameters

    Returns 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

  • Called when the user releases the mouse button after dragging

    Parameters

    Returns void

  • Called when the user starts dragging the target

    Returns

    Parameters

    Returns boolean

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

    Returns

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

    Parameters

    • pos: MouseEventCoordinatesInterface

      Mouse position

    • Optional instanceId: number

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

    Returns boolean

  • Called when the mouse is moved

    Parameters

    Returns void

  • Called when the mouse pointer leaves the target

    Parameters

    Returns void

  • Called when the mouse is hovered on the target

    Parameters

    Returns void

  • Called when the mouse wheel is turned

    Returns

    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