ScreenSpaceInputBindings

Methods

static Ditap.ScreenSpaceInputBindings.registerDragInputBindings(handler, inputBindings, dragInputActions) → DragInputState

Registers drag input bindings on a screen space event handler.
Name Type Description
handler ScreenSpaceEventHandler The screen space event handler.
inputBindings Array.<InputBinding> The drag bindings to register.
dragInputActions DragInputActions The callbacks to invoke for drag actions.
Returns:
The drag input state.

Type Definitions

Ditap.ScreenSpaceInputBindings.DragInputActions

Properties:
Name Type Attributes Description
start function <optional>
Called on drag start.
end function <optional>
Called on drag stop.
change function <optional>
Called on drag move.

Ditap.ScreenSpaceInputBindings.DragInputState

Properties:
Name Type Description
isDragging boolean True if a drag is in progress, false otherwise.

Ditap.ScreenSpaceInputBindings.InputBinding

Properties:
Name Type Attributes Description
button MouseButton The mouse button used for drag start/stop.
modifier number <optional>
The optional keyboard modifier to register.