Optional
onCalled for mouse clicks and taps
Mouse position
Optional
instanceId: numberThe index of the instance if the event occurred on an InstancedMesh.
Return true to consume the event, false to pass it on
Optional
onCalled for double clicks and double taps
Mouse position
Optional
instanceId: numberThe index of the instance if the event occurred on an InstancedMesh.
Return true to consume the event, false to pass it on
Optional
onCalled during dragging
Mouse position
The current viewport
Optional
instanceId: numberThe index of the instance if the event occurred on an InstancedMesh.
Optional
onOptional
onCalled when the user releases the mouse button after dragging
Optional
instanceId: numberThe index of the instance if the event occurred on an InstancedMesh.
Optional
onCalled when the user starts dragging the target
Mouse position
The current viewport
Optional
instanceId: numberThe index of the instance if the event occurred on an InstancedMesh.
Optional
onCalled for click-and-hold and touch-and-hold
Mouse position
Optional
instanceId: numberThe index of the instance if the event occurred on an InstancedMesh.d
Return true to consume the event, false to pass it on
Optional
onCalled when the mouse is moved
Mouse position
The current viewport
Optional
instanceId: numberThe index of the instance if the event occurred on an InstancedMesh.
Optional
onCalled when the mouse pointer leaves the target
Mouse position
The current viewport
Optional
instanceId: numberThe index of the instance if the event occurred on an InstancedMesh.
Optional
onCalled when the mouse is hovered on the target
Mouse position
The current viewport
Optional
instanceId: numberThe index of the instance if the event occurred on an InstancedMesh.
Optional
onCalled when the mouse wheel is turned
Mouse position
Mouse wheel delta
Optional
instanceId: numberThe index of the instance if the event occurred on an InstancedMesh.
Mouse and touch events