# Invert the camera movement with orbit controls

**URL:** https://discourse.threejs.org/t/invert-the-camera-movement-with-orbit-controls/42388
**Category:** Questions
**Tags:** camera-controls
**Created:** [September 9, 2022, 7:39am UTC](https://discourse.threejs.org/t/invert-the-camera-movement-with-orbit-controls/42388 "2022-09-09T07:39:14Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![HappyLives](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/happylives/32/29356_2.png) [@HappyLives](https://discourse.threejs.org/u/HappyLives)
#### Post date: [September 9, 2022, 7:39am UTC](https://discourse.threejs.org/t/invert-the-camera-movement-with-orbit-controls/42388/1 "2022-09-09T07:39:14Z")

</div>

Hi,

I’m trying to find a way to invert the OrbitControls, so when you click and move the mouse to the right, I want the camera to go to left.

I have been playing around but I find it difficult to get it working.

Does someone know a tutorial or an example I could use or know how to implement this?

Thank you in advanced

---

<div class="post-metadata">

### Author: ![HappyLives](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/happylives/32/29356_2.png) [@HappyLives](https://discourse.threejs.org/u/HappyLives)
#### Post date: [September 9, 2022, 7:56am UTC](https://discourse.threejs.org/t/invert-the-camera-movement-with-orbit-controls/42388/2 "2022-09-09T07:56:23Z")

</div>

So I found the answer which is very simple, for does who maybe are looking for this solution

```javascript
const Control = (props:any) => { 
  const { gl, camera, mouse} = useThree()
  const controls = useRef<any>()

  useEffect(() => {
    if (controls.current) {
      controls.current.rotateSpeed = -0.35
    }
  }, [])

  return <OrbitControls ref={controls} args={[camera, gl.domElement]} {...props} />
}

```

I found it in this video:

[![](https://img.youtube.com/vi/RDYbom9WkMk/maxresdefault.jpg "Building a 360 Viewer With Electron and Three.js in Under 60 Minutes!") ](https://www.youtube.com/watch?v=RDYbom9WkMk)

setting the rotation speed negative makes it orbit inverted

---

<div class="post-metadata">

### Author: ![awonnink](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/awonnink/32/22486_2.png) [@awonnink](https://discourse.threejs.org/u/awonnink)
#### Post date: [September 9, 2022, 10:54am UTC](https://discourse.threejs.org/t/invert-the-camera-movement-with-orbit-controls/42388/3 "2022-09-09T10:54:58Z")

</div>

See also [Can I Invert OrbitControls.js drag control? - Questions - three.js forum (threejs.org)](https://discourse.threejs.org/t/can-i-invert-orbitcontrols-js-drag-control/30760/6)
