Skip to content
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

add touch functionality on rating component #361

Closed
wants to merge 2 commits into from
Closed

add touch functionality on rating component #361

wants to merge 2 commits into from

Conversation

N-Silbernagel
Copy link
Contributor

This pull request aims to make the rating component work on mobile as it does on desktop and feel more natural.

Currently the rating component only reacts to the click event on mobile.
By adding TouchStart (to imitate mouseEnter), TouchMove (MouseMove) and TouchEnd (MouseLeave), the rating component reacts to touch- as it does to mouse-event and, in my opinion, feels the way it should.

Let me know if this is not intended behavior or my code does not correspond to the project's standards.

@vercel
Copy link

vercel bot commented Mar 5, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/shoelace/shoelace/9HHJyuH5VcpWbntGdTkVhpMadmya
✅ Preview: https://shoelace-git-fork-n-silbernagel-next-shoelace.vercel.app

@N-Silbernagel
Copy link
Contributor Author

closing for commiting with wrong git user

@N-Silbernagel
Copy link
Contributor Author

new one is #362

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.

None yet

1 participant