Repository navigation
Slider Examples: Move the thumb on pointer down when the rail is pressed - #3477
Open
Ritesh7202 wants to merge 2 commits into
Open
Ritesh7202 wants to merge 2 commits into
Ritesh7202 wants to merge 2 commits into
Conversation
The color viewer and rating sliders only moved the thumb once the pointer moved or was released, and the temperature and seek sliders only moved it on the click event after release. Pressing the rail now moves the thumb to the pointer position immediately and keeps tracking the pointer until it is released, in all four examples, consistent with the native range input. Pressing the thumb itself still starts a drag without jumping. Resolves w3c#2446
Member
|
The ARIA Authoring Practices (APG) Task Force just discussed The full IRC log of that discussion<Zakim> agendum 3 -- PR 3477: Slider Examples: Move the thumb on pointer down when the rail is pressed -- taken up [from agendabot]<Jem_> github:https://github.com//pull/3477 <Jem_> mck: I am surprised that this was not done. Yuji, Can you review this PR? <Jem_> s/pr/pr3477/ <Jem_> zakim, take up item 5 |
Contributor
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #2446
The color viewer and rating sliders only moved the thumb once the pointer moved or was released, and the temperature and seek sliders only moved it on the click event after release. This made it impossible to cancel a press on the rail and was inconsistent with the native range input.
Pressing the rail now moves the thumb to the pointer position immediately and keeps tracking the pointer until it is released, in all four examples. Pressing the thumb itself still starts a drag without jumping.
Changes:
Keyboard behaviour is unchanged.
Testing: npm run lint:es, lint:css and lint:spelling pass. Checked in Chromium that each slider jumps on press, follows a drag, stops on release, does not jump when the thumb is pressed, and still responds to Arrow, Page Up/Down, Home and End. I could not run the Firefox regression suite locally, so I am relying on CI for it.