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

Fixed issue with slider focus and scroll input #38918

Merged

Conversation

EricEzaM
Copy link
Contributor

@EricEzaM EricEzaM commented May 21, 2020

Slider remained highlighted when you used scroll input to change another slider. Now the new slider grabs focus.
Before:
iVveVUWTJV

After:
bTpvqcKMxE

Also I noticed there are quite significant differences between ScrollBar and Slider, even though the functionality is basically the same. For example, Scrollbar has a hovered and a pressed state - slider only has the former. Their input handling code is very different, which confused me a bit - why is it like this? Should Slider be reworked to function the same, but be more similar to ScrollBar? As in, try and synchronise their code so they are as similar as possible for ease of maintenance?

@YeldhamDev YeldhamDev added bug cherrypick:3.x Considered for cherry-picking into a future 3.x release topic:core topic:gui labels May 21, 2020
@YeldhamDev YeldhamDev added this to the 4.0 milestone May 21, 2020
@akien-mga akien-mga requested a review from a team February 25, 2021 16:22
@akien-mga akien-mga merged commit 494e1cb into godotengine:master Feb 25, 2021
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 3.2.4.

@akien-mga akien-mga removed the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Feb 26, 2021
@EricEzaM EricEzaM deleted the fix-slider-focus-on-scroll-input branch October 5, 2021 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants