-
Notifications
You must be signed in to change notification settings - Fork 4.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
RangeControl: animate thumb and track only when using marks #67836
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.
Seems okay to me :)
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
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.
Thanks for the follow-up :)
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.
🚀
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.
Tests well for me 👍 Thanks!
Thank you all for all the reviews! I'm not going to add a CHANGELOG entry since this PR basically stacks with #67611 |
What?
Related to https://github.com/WordPress/gutenberg/pull/67611/files#r1880356463
Tweaks the animation applied to the thumb and track elements of
RangeControl
, so that the animations only apply when the component is showing "marks"Why?
The animation can introduce a subtle delay that can make the experience of dragging the thumb feel slow and unresponsive.
This PR tries to achieve a good compromise by keeping the animation enabled when the component shows marks, since the experience of dragging the thumb is "stepped" and the animation doesn't really introduce a delay.
How?
CSS changes
Testing Instructions
RangeControl
that doesn't show marks — the thumb and the slider should update instantly following the cursor (ie. no animation)marks
to theRangeControl
— the thumb and track should animate, like they already do ontrunk
The difference is subtle. Artificially slowing down the transition duration could help debug the changes.