CesiumGS / cesium

An open-source JavaScript library for world-class 3D globes and maps :earth_americas:
https://cesium.com/cesiumjs/
Apache License 2.0
13.03k stars 3.51k forks source link

Mouse Event won't fire when specific keys are being held #12234

Closed Ron025 closed 1 month ago

Ron025 commented 1 month ago

What happened?

If you register mouse event such as click, left_down or left_up using ScreenSpaceEventHandler(canvasElement), this issue will happen.

Afterthis, when you press down and hold any key of Ctrl, Shift or Alt, and then click mouse's left button, the registered function won't be fired.

Or, suspension on these keys are on purpose ?

Reproduction steps

1. 2. 3. ...

Sandcastle example

https://sandcastle.cesium.com/#c=dY9Ba8MwDIX/ismlCRSbnpeGja5jg7IeUraLYbiOupk5crDllGzsv89JL2VrdZKe3veEtMNArDdwBM+WDOHIVhBMbPnLpOUy09O8ckjKIHiZFTcSJZ5Za+0BsO6UhnUPSI8KG5vYUywPGhC4VtirUPAA9IRdpDtNxmF+iDg1LIcRLdh3CieVcMpni1kh8Wd+7c5u6IBv1g+7t/vt63ORzbMy0GChksimujVt5zyx6G3OuSBoO6sIgthH/QnEdQjjM6O1FOdo2ZiemWZ54XumrQohbQ7R2tp8gcyqUiT/P9Q61Rh83/bgrRpG28ei2pxEznkp0niZJOfsXvk/yb8

Environment

Browser: Chrome CesiumJS Version: 1.121 Operating System: Windows 11