Add ScreenSpaceEventHandler support for multiple KeyboardEventModifier keys#13307
Add ScreenSpaceEventHandler support for multiple KeyboardEventModifier keys#13307Bob-vdV wants to merge 6 commits intoCesiumGS:mainfrom
Conversation
|
Thank you for the pull request, @Bob-vdV! ✅ We can confirm we have a CLA on file for you. |
3625d63 to
85029f4
Compare
|
From very quickly looking over that (I haven't thought it through, just a potential heads-up), it looks like it could make a diference whether someone is using |
In |
I had indeed overlooked that. That should prevent any issues here. Sorry for the noise. |
jjspace
left a comment
There was a problem hiding this comment.
Thanks for the PR @Bob-vdV! Overall this seems to be the change I was expecting. However (as I also suspected) an old bug of the camera getting "stuck" moving has cropped back up. (See #11903, #11889 and #2522) I assume the fix is related or the same as #12073 and just needs to account for the mouse up of more modifier types/combos. Please take a look into it and let us know if you need help tracking it down.
Reproduce
- Open your test sandcastle or this one with all modifier combos
- Press mouse down and start dragging
- Press and hold
Ctrl+Shiftand continue dragging - movement should stop - Release the mouse
- Release
Ctrl+Shiftand notice the camera is "stuck" moving with the mouse
9dadf7c to
450a076
Compare
Co-authored-by: jjspace <8007967+jjspace@users.noreply.github.com>
450a076 to
220b110
Compare
|
The bug seems to be fixed now by adding a few more listeners in the When @jjspace do you have an idea on what is the cause of this bug? |
|
@jjspace The bug should be fixed now. I noticed that |
Description
This pull request adds the functionality to add a listener for mouse events with multiple modifier keys, like this:
This allows devs to define complex shortcuts that don't interfere with the default camera controls.
Single modifier keys are also supported as before.
Issue number and link
#13300
Testing plan
Behaviour tested in a simple sandcastle: localhost link
Author checklist
CONTRIBUTORS.mdCHANGES.mdwith a short summary of my change