# I found a bug maybe

**URL:** <https://community.cesium.com/t/i-found-a-bug-maybe/22006>\
**Category:** CesiumJS\
**Created:** [January 19, 2023, 9:36am UTC](https://community.cesium.com/t/i-found-a-bug-maybe/22006 "2023-01-19T09:36:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cloudatlas](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/cloudatlas/32/4425_2.png) [@cloudatlas](https://community.cesium.com/u/cloudatlas)\
**Post date:** [January 19, 2023, 9:36am UTC](https://community.cesium.com/t/i-found-a-bug-maybe/22006/1 "2023-01-19T09:36:28Z")

</div>

Watch this video, please. [https://twitter.com/peace\_engine/status/1615317374009511937](https://twitter.com/peace_engine/status/1615317374009511937)  
Notice that when i click on the map, it draws a dot. (normal)  
But sometimes, in between, the dot gets rendered somewhere else, instead of the location i clicked.

File: [METAVERSE-DAO\_CLOUD-ATLAS/Cesium.svelte at master · worldpeaceenginelabs/METAVERSE-DAO\_CLOUD-ATLAS · GitHub](https://github.com/worldpeaceenginelabs/METAVERSE-DAO_CLOUD-ATLAS/blob/master/src/Cesium.svelte) (well commented, dot and sync function at the end)

Can you confirm and reproduce maybe?  
Is that a known Cesium bug maybe?

---

<div class="post-metadata">

**Author:** ![lennart.imberg](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/lennart.imberg/32/9788_2.png) [@lennart.imberg](https://community.cesium.com/u/lennart.imberg)\
**Post date:** [January 20, 2023, 10:51am UTC](https://community.cesium.com/t/i-found-a-bug-maybe/22006/2 "2023-01-20T10:51:13Z")

</div>

HI @cloudatlas,

that’s strange, I can’t see errors in the code, but maybe (a big maybe) it has to do with wrong window focus? If the EventHandler is executed before the focus of the browser windows changes, a wrong position is passed. Only hovering the mouse above a window doesn’t focus it. But as I wrote…a BIG maybe, because I have too little knowlegde in this particular situation.

Best, Lennart

---

<div class="post-metadata">

**Author:** ![cloudatlas](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/cloudatlas/32/4425_2.png) [@cloudatlas](https://community.cesium.com/u/cloudatlas)\
**Post date:** [April 11, 2023, 7:28am UTC](https://community.cesium.com/t/i-found-a-bug-maybe/22006/3 "2023-04-11T07:28:29Z")

</div>

just read that now. There was a communication on Github meanwhile [I found a bug maybe? · Issue #11043 · CesiumGS/cesium · GitHub](https://github.com/CesiumGS/cesium/issues/11043)
