Function mouseRightClickDrag

  • Attaches event listeners to an element to handle right-click drag events.

    Type Parameters

    • T extends _Control

      The type of the element, extending _Control.

    Parameters

    • element: T

      The element to attach the event listeners to.

    • moveCallback: MouseEventCallback<T>

      The callback function to be called during mouse movement while the right button is pressed.

    • OptionaldownCallback: MouseEventCallback<T>

      The optional callback function to be called when the right mouse button is pressed down.

    • OptionalupCallback: MouseEventCallback<T>

      The optional callback function to be called when the right mouse button is released.

    Returns void