# Double click zoom

**URL:** <https://community.cesium.com/t/double-click-zoom/3075>\
**Category:** CesiumJS\
**Created:** [September 17, 2015, 9:50am UTC](https://community.cesium.com/t/double-click-zoom/3075 "2015-09-17T09:50:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![frederic.junod1](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/frederic.junod1/32/2190_2.png) [@frederic.junod1](https://community.cesium.com/u/frederic.junod1)\
**Post date:** [September 17, 2015, 9:50am UTC](https://community.cesium.com/t/double-click-zoom/3075/1 "2015-09-17T09:50:13Z")

</div>

Hi,

How to perform a zoom in on double click?

I wanted to add a new item to ScreenSpaceCameraController#zoomEventTypes [1] but CameraEventType [2] does not contains a double click event.

(ScreenSpaceEventType has a LEFT\_DOUBLE\_CLICK [3] event)

Thanks,

fredj

[1] [https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Scene/ScreenSpaceCameraController.js#L186](https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Scene/ScreenSpaceCameraController.js#L186)  
[2] [https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Scene/CameraEventType.js](https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Scene/CameraEventType.js)  
[3] [https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Core/ScreenSpaceEventType.js#L45](https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Core/ScreenSpaceEventType.js#L45)

---

<div class="post-metadata">

**Author:** ![hannah](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/hannah/32/4509_2.png) [@hannah](https://community.cesium.com/u/hannah)\
**Post date:** [September 17, 2015, 6:02pm UTC](https://community.cesium.com/t/double-click-zoom/3075/2 "2015-09-17T18:02:24Z")

</div>

Hello,

You would have to add custom code to accomplish this behavior. You would have to add the event to [CameraEventType](http://cesiumjs.org/Cesium/Build/Documentation/CameraEventType.html), and make changes to the [CameraEventAggregator](http://cesiumjs.org/Cesium/Build/Documentation/CameraEventAggregator.html) and the [ScreenSpaceCameraController](http://cesiumjs.org/Cesium/Build/Documentation/ScreenSpaceCameraController.html) to handle the new type.

Best,

Hannah
