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

GUI doesn't remember focus #200

Open
robalni opened this issue Aug 14, 2020 · 0 comments · May be fixed by #201
Open

GUI doesn't remember focus #200

robalni opened this issue Aug 14, 2020 · 0 comments · May be fixed by #201

Comments

@robalni
Copy link
Contributor

robalni commented Aug 14, 2020

You may have noticed that when you try to drag the scrollbar e.g. in the server browser it only works while you have the mouse cursor on it and if you release the mouse button somewhere else that counts as a click there. Or if you drag from one button to another it will count as a click on the second button.

That happens because the game doesn't store information about GUI objects to the next frame, so on the next frame the game will not know what object you were interacting with on the previous frame, and therefore it can't remember that you were using the scrollbar when the cursor leaves it.

This is annoying and it should be fixed so that you can drag-scroll while not looking at the cursor, and button clicks should only count if you pressed down the mouse button on the same GUI button as you release it on.

I'm already working on a fix for this.

@robalni robalni linked a pull request Aug 16, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant