OptionalonCalled for mouse clicks and taps
Mouse position
OptionalinstanceId: numberThe index of the instance if the event occurred on an InstancedMesh.
Return true to consume the event, false to pass it on
OptionalonCalled for double clicks and double taps
Mouse position
OptionalinstanceId: numberThe index of the instance if the event occurred on an InstancedMesh.
Return true to consume the event, false to pass it on
OptionalonCalled during dragging
Mouse position
The current viewport
OptionalinstanceId: numberThe index of the instance if the event occurred on an InstancedMesh.
OptionalonCalled when the user cancels dragging by pressing the escape key
OptionalinstanceId: numberThe index of the instance if the event occurred on an InstancedMesh.
OptionalonCalled when the user releases the mouse button after dragging
OptionalinstanceId: numberThe index of the instance if the event occurred on an InstancedMesh.
OptionalonCalled when the user starts dragging the target
Mouse position
The current viewport
OptionalinstanceId: numberThe index of the instance if the event occurred on an InstancedMesh.
OptionalonCalled for click-and-hold and touch-and-hold
Mouse position
OptionalinstanceId: numberThe index of the instance if the event occurred on an InstancedMesh.d
Return true to consume the event, false to pass it on
OptionalonCalled when the mouse is moved
Mouse position
The current viewport
OptionalinstanceId: numberThe index of the instance if the event occurred on an InstancedMesh.
OptionalonCalled when the mouse pointer leaves the target
Mouse position
The current viewport
OptionalinstanceId: numberThe index of the instance if the event occurred on an InstancedMesh.
OptionalonCalled when the mouse is hovered on the target
Mouse position
The current viewport
OptionalinstanceId: numberThe index of the instance if the event occurred on an InstancedMesh.
OptionalonCalled when the mouse wheel is turned
Mouse position
Mouse wheel delta
OptionalinstanceId: numberThe index of the instance if the event occurred on an InstancedMesh.
OptionaltranslateTranslate the target by an exact world-space offset, without deriving it from a screen position/raycast the way onDrag does. Optional: implement it when something other than pointer movement needs to move the target by a precisely known amount and keep it in sync with an onDrag-driven position (e.g. the crop box staying anchored to the cursor while the map auto-pans near a viewport edge).
World-space offset to translate by
Mouse and touch events