-
Notifications
You must be signed in to change notification settings - Fork 201
feat(touch-action): adding touch action none to draggable components #3656
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: spectrum-two
Are you sure you want to change the base?
feat(touch-action): adding touch action none to draggable components #3656
Conversation
🦋 Changeset detectedLatest commit: 8de4da1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
File metricsSummaryTotal size: 1.38 MB*
File change detailscolorarea
colorhandle
colorslider
colorwheel
slider
* An ASCII character in UTF-8 is 8 bits or 1 byte. |
🚀 Deployed on https://pr-3656--spectrum-css.netlify.app |
@@ -2,7 +2,8 @@ import { Template as ButtonGroup } from "@spectrum-css/buttongroup/stories/templ | |||
import { Template as Checkbox } from "@spectrum-css/checkbox/stories/template.js"; | |||
import { Template as CloseButton } from "@spectrum-css/closebutton/stories/template.js"; | |||
import { Template as Modal } from "@spectrum-css/modal/stories/template.js"; | |||
import { getRandomId, renderContent } from "@spectrum-css/preview/decorators"; | |||
import { getRandomId } from "@spectrum-css/preview/decorators"; | |||
import { Template as Typography } from "@spectrum-css/typography/stories/template.js"; |
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.
🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'Typography' is defined but never used.
90388d1
to
fe4cef8
Compare
Including the touch action rule for draggable content
The slider, color slider, color area, color wheel, color handle all deserve to have their touch-action property manages so that trying to set the value of those interfaces doesn't cause page scrolling in touch context.
Adding
touch-action: none
to a slider or any draggable component is necessary to prevent the browser's default touch behaviors—such as scrolling, pinch-zooming, or double-tap zooming—from interfering with the component's intended interaction.How and where has this been tested?
Please tag yourself on the tests you've marked complete to confirm the tests have been run by someone other than the author.
Validation steps
Regression testing
Validate:
Screenshots
To-do list
Remove
touch-action: none
in listed components in SWCI have read the contribution guidelines.
I have updated relevant storybook stories and templates.
I have tested these changes in Windows High Contrast mode.
If my change impacts other components, I have tested to make sure they don't break.
If my change impacts documentation, I have updated the documentation accordingly.
✨ This pull request is ready to merge. ✨