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

Suggested feature: simple way to add swipe functionality #2

Open
invot opened this issue Mar 4, 2019 · 2 comments
Open

Suggested feature: simple way to add swipe functionality #2

invot opened this issue Mar 4, 2019 · 2 comments

Comments

@invot
Copy link

invot commented Mar 4, 2019

This does everything I need it to do other than swiping between views. Is there a simple way to implement this functionality?

@invot
Copy link
Author

invot commented Mar 4, 2019

http://react-easy-swipe.js.org/ -- maybe something like this?

@jedwards1211
Copy link
Member

There isn't currently, you could use what ever swipe detection lib you want to listen for a swipe and if so, change the activeView. I don't want to bloat the default component with a swipe detection lib, but we could make a separate component in this package that sets up the swipe detector and calls an onActiveViewChange passed to it; does that sound good?
And do you know a good small lib for swipe detection? I've used Hammer.js before but it would be a lot kB for just doing swipe detection.

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