You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(OrbitControls): add mouseButtons prop to customize mouse interactions (#603)
* feat(OrbitControls): add mouseButtons prop to customize mouse interactions
- Updated OrbitControls component to support custom mouse button configurations
- Added `mouseButtons` prop to documentation and component
- Imported MOUSE enum from three.js
- Updated demo and documentation to showcase new prop
* chore(CI): update corepack installation in GitHub workflow
- Force install corepack globally using npm to ensure compatibility
- Modify workflow to use global corepack installation before enabling
Copy file name to clipboardexpand all lines: docs/guide/controls/orbit-controls.md
+1
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,7 @@ Is really important that the Perspective camera is set first in the canvas. Othe
46
46
|**minZoom**| The minimum field of view angle, in radians. Default is 0. |`0`|
47
47
|**maxZoom**| The maximum field of view angle, in radians. ( OrthographicCamera only ). Default is Infinity. |`Infinity`|
48
48
|**touches**| This object contains references to the touch actions used by the controls. |`{ ONE: TOUCH.ROTATE, TWO: TOUCH.DOLLY_PAN }`|
49
+
|**mouseButtons**| This object contains references to the mouse actions used by the controls. LEFT: Rotate around the target, MIDDLE: Zoom the camera, RIGHT: Pan the camera. |`{ LEFT: MOUSE.ROTATE, MIDDLE: MOUSE.DOLLY, RIGHT: MOUSE.PAN }`|
49
50
| - | - |
50
51
|**enableZoom**| Whether to enable zooming. |`true`|
51
52
|**zoomSpeed**| How fast to zoom in and out. Default is 1. |`1`|
0 commit comments