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

Discuss touch action #8

Open
TheComputerM opened this issue Nov 1, 2020 · 4 comments
Open

Discuss touch action #8

TheComputerM opened this issue Nov 1, 2020 · 4 comments

Comments

@TheComputerM
Copy link

Consider adding something like this to the collection https://svelte-materialify.vercel.app/actions/touch/

@swyxio
Copy link
Owner

swyxio commented Nov 1, 2020

id like to see a usecase of this one.. this has no behavior in desktop, which makes me unlikely to use it, so seeing this in context in a real usecase would help

@TheComputerM
Copy link
Author

Slide left and right on mobile: https://svelte-materialify.vercel.app/components/slide-groups/

@swyxio
Copy link
Owner

swyxio commented Nov 2, 2020

interesting. why not implement a desktop cursor slide left/right as well?

@TheComputerM
Copy link
Author

Just replace the touch events with pointer events for desktop support, this is useful for drag actions in components such as carousels and navigation drawers.

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

No branches or pull requests

2 participants