-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Set thumb color to lighter in core_widgets_observers when dragging with pointer not over #20947
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
base: main
Are you sure you want to change the base?
Set thumb color to lighter in core_widgets_observers when dragging with pointer not over #20947
Conversation
…e thumb with the pointer not over the slider.
Can we hold off on this until after the renaming goes in? I agree with the motivation, the only reason I didn't implement this before was I was hoping for a better way to do it. All of the feathers widgets would be greatly simplified with a real reactive framework: I have similar widgets in both |
Blocked on #20944. |
Yep, this is just the least worst fix I could think of so it's not broken for the 0.17 release. My naive idea for a proper fix I was thinking about earlier would be to rework the picking events to something like:
And maybe add a |
On the web, the modern way to do this kind of dragging is to call |
Yes I quite like that. I guess it's pretty similar to my solution above, just more explicit than implicit. But with |
Objective
In
core_widgets_observers
the thumb should stay the active color during drags when the pointer is not hovering the slider.Solution
slider_on_change_hover
, query forCoreSliderDragState
and set the thumb color lighter if the slider is hovered or dragged.update_thumb_color_when_drag_ends
to update the thumb color when dragging ends.Not ideal implementation, would be better with some way to observe the drag state.