-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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 PopupMenu
on keyboard/controller input
#80271
Conversation
I was also working on a PR to fix this bug and I chose an alternate way to deal with scrolling position : Instead of scrolling when reaching the bottom or the top of the scrollcontainer, it's scrolling if we reach the middle of the scrollcontainer. Here is a gif. I feel this is smoother and allow to see better what is above and under the selected item. What do you think about it ? |
.github/workflows/linux_builds.yml
Outdated
@@ -59,16 +58,6 @@ jobs: | |||
# Skip 2GiB artifact speeding up action. | |||
artifact: false | |||
|
|||
- name: Editor with ThreadSanitizer (target=editor, tests=yes, dev_build=yes, use_tsan=yes, use_llvm=yes, linker=lld) |
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.
You broke your PR, you accidentally reverted the recent engine changes.
See this article for information of how to fix this problem: https://docs.godotengine.org/en/latest/contributing/workflow/pr_workflow.html (or with a GUI).
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.
While updating my fork, mistakenly committed over 50 changes automatically from the updated master branch without confirmation or something idk, So I reverted the commit. Should I keep those changes and revert back?
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.
Neither, you should instead rebase your commits so that the merge is not in the history anymore.
Good work @jmb462, I thought of the same but for the intuitive usability, I kept the way I did it. |
87d6934
to
f5b3fe4
Compare
416a0f3
to
fb2b8e8
Compare
This could solve also #42230 |
I don't think it solves that issue completely, since it's a different type of problem: joystick inputs triggering UI actions multiple times due to being analogue. |
fb2b8e8
to
c8db8b9
Compare
c8db8b9
to
a16fdb0
Compare
@YuriSizov have a look. |
Thanks! |
Cherry-picked for 4.1.3. |
PopupMenu
on keyboard/controller input
This PR targets the
4.x
branches, has this issue also in 4.0 stable.This resolves an issue with the popup menu's weird scrolling behavior when using the keyboard/controller, as mentioned in #80224 . It fixes the problem and also includes some code refactoring.
Production edit: Fixes #80224, fixes #42230