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 scrolling behavior with zero/low page value #67910

Merged
merged 1 commit into from
Mar 8, 2023

Conversation

pkowal1982
Copy link
Contributor

ScrollBar with page set to 0 ignores mouse wheel events and clicks. Only dragging can change its value. Also combination of small page value and big step can produce unpredicted results.

I think it's not the best behaviour and probably disabling mouse input by setting page to 0 is not intentional.
I propose to change value by some percent for mouse events when page is set to default 0.

Scrolling before and afer:
scrollbarchange

Test project:
scrollbarchange.zip

@pkowal1982 pkowal1982 requested a review from a team as a code owner October 26, 2022 18:00
@Calinou Calinou added this to the 4.0 milestone Oct 26, 2022
@Calinou Calinou added cherrypick:3.x Considered for cherry-picking into a future 3.x release cherrypick:3.5 Considered for cherry-picking into a future 3.5.x release labels Oct 26, 2022
@akien-mga akien-mga modified the milestones: 4.0, 4.1 Feb 14, 2023
@akien-mga akien-mga merged commit 677cba3 into godotengine:master Mar 8, 2023
@akien-mga
Copy link
Member

Thanks!

@YuriSizov
Copy link
Contributor

Cherry-picked for 4.0.2.

@akien-mga akien-mga changed the title Fix scrolling behaviour with zero/low page value Fix scrolling behavior with zero/low page value Aug 28, 2023
@akien-mga
Copy link
Member

Cherry-picked for 3.6.

@akien-mga akien-mga removed the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Aug 28, 2023
@akien-mga
Copy link
Member

Cherry-picked for 3.5.3.

@akien-mga akien-mga removed the cherrypick:3.5 Considered for cherry-picking into a future 3.5.x release label Aug 28, 2023
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.

5 participants