-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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 disabled slider highlighting #78776
Fix disabled slider highlighting #78776
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally, it works.
simplescreenrecorder-2023-06-28_08.40.25.mp4
Testing project: test_pr_78776.zip
Maybe it would be better to change bool highlighted = editable && (mouse_inside || has_focus()); Right now it's used only once, but technically it has wrong value if the Slider should never be highlighted when uneditable. |
Seems good to me. so we get:
Would that be okey? |
|
@NiskashY Will you be willing to make the requested changes? |
@YuriSizov Make changes KoBeWi suggested? bool highlighted = editable && (mouse_inside || has_focus()); |
Yep! |
Also, please make sure to squash your commits into one. Make sure that the final commit has a short but descriptive message (the title of this PR is a good option). See this documentation, if you need help with squashing. |
87e68d7
to
4394936
Compare
Thanks! And congrats on your first merged Godot pull-request! |
Cherry-picked for 4.1.1. |
Cherry-picked for 4.0.4. |
Fix #78748
Added missing check for the grabber_area.