Skip to content

fix(ColorPicker): make thumbs touch draggable #4101

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

Open
wants to merge 1 commit into
base: v3
Choose a base branch
from

Conversation

mkalino1
Copy link

@mkalino1 mkalino1 commented May 7, 2025

πŸ”— Linked issue

Resolves ColorPicker part of #3291

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Currently both thumbs of color picker are not draggable on touch screens. When you try to drag it the browser will try to scroll the whole page instead. It makes mobile users experience worse, since they need to precisely tap the right place.

My solution is to add the touch-action: none; property to both selector containers to tell browsers that touches inside these two containers should not scroll/pan/zoom the page. It solves the bug, while not breaking touch-scrolling outside of the containers.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

Copy link

pkg-pr-new bot commented May 7, 2025

npm i https://pkg.pr.new/@nuxt/ui@4101

commit: d668591

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant