Optional
onCalled for mouse clicks and taps
Return true to consume the event, false to pass it on
Mouse position
Optional
instanceId: numberThe index of the instance if the event occurred on an InstancedMesh.
Optional
onCalled for double clicks and double taps
Return true to consume the event, false to pass it on
Mouse position
Optional
instanceId: numberThe index of the instance if the event occurred on an InstancedMesh.
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
Return true to consume the event, false to pass it on
Mouse position
Optional
instanceId: numberThe index of the instance if the event occurred on an InstancedMesh.d
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.
Generated using TypeDoc
Mouse and touch events