Skip to content

Commit

Permalink
OrbitControls: Add zoom to cursor (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 authored Jul 28, 2023
1 parent c79c15c commit ed79dab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions types/three/examples/jsm/controls/OrbitControls.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ export class OrbitControls {
*/
zoomSpeed: number;

/**
* Setting this property to `true` allows to zoom to the cursor's position.
* @default false
*/
zoomToCursor: boolean;

/**
* Enable or disable horizontal and
* vertical rotation of the camera.
Expand Down

0 comments on commit ed79dab

Please sign in to comment.