# Camera Controls - Lock axis to prevent rolling?

**URL:** <https://community.cesium.com/t/camera-controls-lock-axis-to-prevent-rolling/1611>\
**Category:** CesiumJS\
**Created:** [October 22, 2014, 3:48pm UTC](https://community.cesium.com/t/camera-controls-lock-axis-to-prevent-rolling/1611 "2014-10-22T15:48:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dodge.kyle](https://avatars.discourse-cdn.com/v4/letter/d/f1d935/32.png) [@dodge.kyle](https://community.cesium.com/u/dodge.kyle)\
**Post date:** [October 22, 2014, 3:48pm UTC](https://community.cesium.com/t/camera-controls-lock-axis-to-prevent-rolling/1611/1 "2014-10-22T15:48:22Z")

</div>

Using the camera controls here: [http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Camera%20Tutorial.html&label=All](http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Camera%20Tutorial.html&label=All)

I've been struggling with figuring out a way to lock the horizontal axis with camera controls such that the user doesn't roll when looking left and right, and wondering if anyone has figured out a way to overcome this?

I want to start the user directly on the ground level, so I don't have to worry about having the horizontal axis locked as they zoom in... I have that setup, but currently when I try to use the mouse to look 180 degrees you start to roll about 90 degrees and gets worse as you continue to rotate.

Anyone have some ideas?
