-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Map remains in change camera mode (control key) after changing windows #3389
Comments
I can reproduce this on Linux Chrome 55 without changing window.
|
Yeah, I get this on both Mac and Windows. The good news is that you can "unstick" the key by doing the reverse:
|
@bsudekum, I submitted a PR to try to fix this, however I've just realised it doesn't address your exact report. The way the DragRotateHandler works at the moment is if you let go of Ctrl/Command with the mouse still down, DragRotate is still active. I think this is how it should work. However at the moment if you have the mouse down and are drag rotating, and change tabs and then mouseup, when you change tabs back, even though the mouse is up the map is still rotating. That's the bug I've tried to fix. |
… (mapbox#4390) * Ensure DragRotate stops when the window looses focus. Fixes mapbox#3389 * simplify approach to de-activate DragRotate when the window loosese focus * de-activate DragPan when window loosese focus
mapbox-gl-js version:
v0.26.0
Steps to Trigger Behavior
Expected Behavior
The map would not be remain in change camera/pitch mode since the control key is not pressed.
Actual Behavior
The map remains in change camera/pitch mode even though the control key is not pressed.
The text was updated successfully, but these errors were encountered: