cesium icon indicating copy to clipboard operation
cesium copied to clipboard

Movement handler stuck when clicking certain key combinations

Open Dphalos opened this issue 10 months ago • 2 comments

What happened?

If you do the reproduction steps, you get stuck with dragging mode even when you do not hold LEFT_CLICK.

https://github.com/CesiumGS/cesium/assets/27568710/9809b620-4960-4b9b-b8ba-47f8bd3b28cd

Reproduction steps

  1. Press and hold LEFT_CLICK Down
  2. Press and hold ALT Down
  3. LEFT_CLICK Up
  4. ALT Up

Sandcastle example

No response

Environment

Browser: Google Chrome Version 123.0.6312.59 (Official Build) (64-bit) CesiumJS Version: 1.115 Operating System: Windows 10

Dphalos avatar Mar 27 '24 14:03 Dphalos

Thanks for the report @Dphalos, I think this is an oversight in ScreenSpaceCameraController.

ggetz avatar Mar 27 '24 17:03 ggetz

Is this a result of our intentional choice to separate mouse events based on what modifiers are held down? So the event at step 3 in the reproduction steps is "Left click up + alt" instead of just "Left click up"?

jjspace avatar Mar 27 '24 18:03 jjspace