# Cylinder Entity not updating on mousemove

**URL:** <https://community.cesium.com/t/cylinder-entity-not-updating-on-mousemove/6456>\
**Category:** CesiumJS\
**Created:** [January 11, 2018, 6:41pm UTC](https://community.cesium.com/t/cylinder-entity-not-updating-on-mousemove/6456 "2018-01-11T18:41:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevin\_Ten\_Eyck](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kevin_ten_eyck/32/27541_2.png) [@Kevin\_Ten\_Eyck](https://community.cesium.com/u/Kevin_Ten_Eyck)\
**Post date:** [January 11, 2018, 6:41pm UTC](https://community.cesium.com/t/cylinder-entity-not-updating-on-mousemove/6456/1 "2018-01-11T18:41:42Z")

</div>

**1. A concise explanation of the problem you’re experiencing.**

I’m trying to update the position of a cylinder as the mouse moves but the cylinder flickers while moving slow or doesn’t move until you stop moving.

**2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.**

> **[Cesium Sandcastle](https://sandcastle.cesium.com/?src=Hello%20World.html&label=Showcases&gist=52190ac6bbb5fefd78cb2bcc7109e0b1)**
>
> The Cesium Sandcastle provides an interactive environment for testing Cesium code.

**3. Context. Why do you need to do this? We might know a better way to accomplish your goal.**

I want the user to be able to define the location of a cylinder on the map. It would be useful to have instantaneous feedback where the cylinder will be placed as the user moves the mouse.

**4. The Cesium version you’re using, your operating system and browser.**

1.41

---

<div class="post-metadata">

**Author:** ![Kevin\_Ten\_Eyck](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kevin_ten_eyck/32/27541_2.png) [@Kevin\_Ten\_Eyck](https://community.cesium.com/u/Kevin_Ten_Eyck)\
**Post date:** [January 11, 2018, 8:09pm UTC](https://community.cesium.com/t/cylinder-entity-not-updating-on-mousemove/6456/2 "2018-01-11T20:09:41Z")

</div>

You need to define a CallbackProperty on the entity position.

Working Example:

> **[Cesium Sandcastle](https://sandcastle.cesium.com/?src=Hello%20World.html&label=Showcases&gist=163123b7d2e0deebce93379b27cfc409)**
>
> The Cesium Sandcastle provides an interactive environment for testing Cesium code.

---

<div class="post-metadata">

**Author:** ![Gabby\_Getz](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/gabby_getz/32/7838_2.png) [@Gabby\_Getz](https://community.cesium.com/u/Gabby_Getz)\
**Post date:** [January 11, 2018, 9:15pm UTC](https://community.cesium.com/t/cylinder-entity-not-updating-on-mousemove/6456/3 "2018-01-11T21:15:39Z")

</div>

Thanks for the update Kevin!
