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 to rating component #362

Merged
merged 3 commits into from
Mar 9, 2021
Merged

add touch functionality to rating component #362

merged 3 commits into from
Mar 9, 2021

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/BpWUUXJX2rFMQz68HZTjJUwtLxB1
✅ Preview: https://shoelace-git-fork-n-silbernagel-next-shoelace.vercel.app

@claviska
Copy link
Member

claviska commented Mar 8, 2021

Apologies, I kinda pulled the rug out from under you with the switch to LitElement. I think this has value for touch users, so would you mind updating this to the latest in next? Looks like most of the changes will be on<eventName> => @<eventName>.

Thanks!

@N-Silbernagel
Copy link
Contributor Author

I'll look into it!

@N-Silbernagel
Copy link
Contributor Author

That should be it. Thank's for putting the time into reading my pull request.

@claviska claviska merged commit cdbae1f into shoelace-style:next Mar 9, 2021
@claviska
Copy link
Member

claviska commented Mar 9, 2021

This looks great, thanks!

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

2 participants