ScreenSpaceEventType Not Firing When Another Key Is Pressed

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

I provide the user the ability to draw an extent/rectangle for zooming to a specific area. The way they do this is by pressing the “Z” key and then left-clicking the mouse and dragging to draw the rectangle. In the latest Cesium (1.53) I have found that the ScreenSpaceEventType.LEFT_UP event does not fire when another key is being pressed. Its not until I let go of the “Z” key that the ScreenSpaceEventType.LEFT_UP event fires.

I downgraded my Cesium back to 1.48 which was the last version I had noticed this feature working properly. Sure enough in 1.48 the behavior is as expected. The user can press the “Z” button and left click to draw the rectangle and when they let up on the left mouse button still with “Z” suppressed the ScreenSpaceEventType.LEFT_UP event fires…

This seems like a bug to me. The ScreenSpaceEventType.LEFT_UP should fire regardless if another key is suppressed. Likewise for all mouse events.

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

Cesium 1.53

Chrome 64.0.3282.167

Windows 10

This definitely seems like a bug, especially given it was working before. Are you able to put together a simple Sandcastle? Then either you or I can open a GitHub bug report (https://github.com/AnalyticalGraphicsInc/cesium/issues).

You can test older versions of Sandcastle under “releases/” so 1.48 would be:

https://cesiumjs.org/releases/1.48/Apps/Sandcastle/index.html

I’m also seeing this issue in our application. Our left up event works fine in 1.52 but breaks in 1.53. I can try and create an example.

Here is a example working in 1.52
https://cesiumjs.org/releases/1.52/Apps/Sandcastle/index.html#c=pVZtb9s4DP4rvnxYHTSndOgN3da0WNF2WIF0DdZ0w2E5HBSbcbQpkiHJznJD/vso+U1KU6DY6YstinxIPqRol1RFJYM1qOgsErCOLkGzYkU+O1l8kLjtpRSGMgHqYBD9nIkIF1vRDNRmomTJUlBvG8NEATUwZRxuaX4PqmQJ3IS6cQ1hV6F41NrOC8bTW5kWHB4Ujw8utAajh1P4YQoFeviR4pPya6rM8ubmoF/BbPG57Z/OxEyUmE0umTCYTJUVAWGYYaAJTdPGcS41yqToPF8iJL5RcUwWSq6uIFMAOv7z5BV59ebk5GQQ/XVEjo5fvz7uDxoM6+Zt5OWSsx/A79l/gOKXR4PuIJFcKs+Z3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