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

Fix issue where a Selectable component remains highlighted when the cursor leaves it while input is DOWN #10

Open
wants to merge 1 commit into
base: 2019.1
Choose a base branch
from

Conversation

SimonDarksideJ
Copy link

I don't expect this even to be taken in, but hay ho.

Resolves an issue where a Selectable control will remain in a highlighted state if a user is holding input while they move the cursor from the bounds of the Selectable.

Currently, this leaves a button in a "Highlighted" state simply because it only checks if the Pointer is down and NOT if the pointer is within the bounds of the control.

The fix simply checks BOTH the Pointer down state and the Pointer Inside state before marking a selectable as highlighted.

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 this pull request may close these issues.

1 participant