-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
add scrolling to pick_lists #872
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.
Looks great! Thanks! 🎉
I have abstracted and simplified the logic a bit in 6069e90 so there's not as much code duplication and we avoid edge cases when the list of options is empty.
Additionally, I have disabled the scrolling behavior for the Pixels
variant of ScrollDelta
. This way, the PickList
will react to discrete scroll events (e.g. an actual mouse wheel) while dismissing continuous scroll events (e.g. scrolling with a trackpad).
I believe this ship is ready to sail! 🚢
No, thank you!!!!!! 😄 |
This is a PR to clean up #729 as that PR had 3 features, 2 of which are handled by iced_aw/#11 and #607.
All this PR does is create a message with a new Pick_List value when a scroll event is detected on said Pick_List.