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

Is there any way to cancel the swipe? #574

Open
rodrigojuarez opened this issue Jun 20, 2020 · 3 comments
Open

Is there any way to cancel the swipe? #574

rodrigojuarez opened this issue Jun 20, 2020 · 3 comments

Comments

@rodrigojuarez
Copy link

I want to do some validation when the user starts to swipe and then have the possibility to cancel the swipe.
Is there any way I can do that?

@GeoSaffer
Copy link

GeoSaffer commented Jul 14, 2020

I am looking for the same/similar functionality.

To only allow progressing forward in the carousel when conditions are met.

Please, this would be a great help.

@alexrainman
Copy link
Owner

Have you tried using the IsSwipeEnabled property?

@rodrigojuarez
Copy link
Author

Yes, but if I set it to false, I can't do the validation when the user starts to swipe (because the user can't swipe), and if it's set to true, I don't see how to cancel the swipe if the validation fail.
I guess I'm looking for some sort of hook or event, SwipeStarted that can be cancelled.

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

3 participants