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

Not working on mobile #138

Closed
gecevicius opened this issue May 23, 2019 · 1 comment
Closed

Not working on mobile #138

gecevicius opened this issue May 23, 2019 · 1 comment

Comments

@gecevicius
Copy link

Everything works great on computer with mosue events, touch events are not functional at all? The cards barely move from their starting position. 'dragstart' and 'dragmove' events fire correctly, 'dragend' does not fire at all. Not really sure if this is a hammer.js issue, swing or something else?
https://swipe-deals-dev.myshopify.com/

@gecevicius
Copy link
Author

Found the issue.
I read through all the issues in this repo to see if there were any solutions, the only one that was close to what I needed was #99 touch-action:none; , but it did not work at first when applied to the cards. Turns out it needs to be applied to the parent rather than the cards themselves. Works just fine now.

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

No branches or pull requests

2 participants