# Mouse pan and camera move

**URL:** <https://community.cesium.com/t/mouse-pan-and-camera-move/10291>\
**Category:** CesiumJS\
**Created:** [July 21, 2020, 2:56am UTC](https://community.cesium.com/t/mouse-pan-and-camera-move/10291 "2020-07-21T02:56:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![happyfeet1996](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/happyfeet1996/32/2771_2.png) [@happyfeet1996](https://community.cesium.com/u/happyfeet1996)\
**Post date:** [July 21, 2020, 2:56am UTC](https://community.cesium.com/t/mouse-pan-and-camera-move/10291/1 "2020-07-21T02:56:01Z")

</div>

I want to change mouse left drag event,by default,keep mouse left down and drag model,the model will rotate centered by earth, i want to drag model like camera move up or move left,such when i keep mouse left down and move up,the camera move up, i tried like this:

 ![image](https://global.discourse-cdn.com/cesium/original/2X/7/794c3604313a2cbc9b51ed214a77a90183d062aa.png)  
but it has a problem,when my camera is far away from the model,the camera moved too short.how to let model follow mouse move?
