# Enable/Disable Rotation, Pan, Zoom in Camera Controls

**URL:** <https://discourse.threejs.org/t/enable-disable-rotation-pan-zoom-in-camera-controls/59457>\
**Category:** Questions\
**Created:** [December 20, 2023, 6:38am UTC](https://discourse.threejs.org/t/enable-disable-rotation-pan-zoom-in-camera-controls/59457 "2023-12-20T06:38:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zenhanu](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/zenhanu/32/40912_2.png) [@zenhanu](https://discourse.threejs.org/u/zenhanu)\
**Post date:** [December 20, 2023, 6:38am UTC](https://discourse.threejs.org/t/enable-disable-rotation-pan-zoom-in-camera-controls/59457/1 "2023-12-20T06:38:29Z")

</div>

Hi, Is there any way to disable/enable only the rotation, pan, zoom options in [Camera Controls](https://github.com/yomotsu/camera-controls). In that, the `enabled` option sets enabled or disables all controls.

---

<div class="post-metadata">

**Author:** ![manthrax](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/manthrax/32/2596_2.png) [@manthrax](https://discourse.threejs.org/u/manthrax)\
**Post date:** [December 20, 2023, 6:43am UTC](https://discourse.threejs.org/t/enable-disable-rotation-pan-zoom-in-camera-controls/59457/2 "2023-12-20T06:43:29Z")

</div>

[three.js docs](https://threejs.org/docs/#examples/en/controls/OrbitControls.enablePan) ? examples/en/controls/OrbitControls.enablePan

---

<div class="post-metadata">

**Author:** ![PavelBoytchev](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/pavelboytchev/32/38639_2.png) [@PavelBoytchev](https://discourse.threejs.org/u/PavelBoytchev)\
**Post date:** [December 20, 2023, 7:03am UTC](https://discourse.threejs.org/t/enable-disable-rotation-pan-zoom-in-camera-controls/59457/3 "2023-12-20T07:03:54Z")

</div>

I have no experience with CameraControls, but you may want to have a look at this demo:  
[https://yomotsu.github.io/camera-controls/examples/config.html](https://yomotsu.github.io/camera-controls/examples/config.html)

You can use `CameraControls.ACTION.NONE` to disable individual mouse buttons or touches. Maybe there is something like this for keyboard keys too?

---

<div class="post-metadata">

**Author:** ![zenhanu](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/zenhanu/32/40912_2.png) [@zenhanu](https://discourse.threejs.org/u/zenhanu)\
**Post date:** [December 20, 2023, 7:41am UTC](https://discourse.threejs.org/t/enable-disable-rotation-pan-zoom-in-camera-controls/59457/4 "2023-12-20T07:41:28Z")

</div>

I’m using an external library for Camera controls.

---

<div class="post-metadata">

**Author:** ![zenhanu](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/zenhanu/32/40912_2.png) [@zenhanu](https://discourse.threejs.org/u/zenhanu)\
**Post date:** [December 20, 2023, 7:42am UTC](https://discourse.threejs.org/t/enable-disable-rotation-pan-zoom-in-camera-controls/59457/5 "2023-12-20T07:42:13Z")

</div>

Thanks. I’ll try this.
