Skip to content
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

Alt-tab into another window activates rotate camera #293

Open
freddyhayward opened this issue Sep 21, 2018 · 1 comment
Open

Alt-tab into another window activates rotate camera #293

freddyhayward opened this issue Sep 21, 2018 · 1 comment

Comments

@freddyhayward
Copy link

On Linux, when I alt-tab into another window and then back into citybound, the camera rotates with the mouse, as if I was holding down the alt key (I'm not). This happened on both the browser and native rust version. Don't know if it happens on other platforms.

@aeplay
Copy link
Member

aeplay commented Sep 22, 2018

It’s because Citybound only sees the key down event but then never gets the key up event because you switch away from it. I’ll see if I can detect loss of being in the foreground and then reset all keys

kalmi added a commit to kalmi/citybound that referenced this issue Mar 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants