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 applying swiped function on a certain direction without preventing swipe #156

Open
KarDaKar opened this issue Aug 19, 2023 · 1 comment

Comments

@KarDaKar
Copy link

I want to programmatically prevent the change of the card if user swipes down, i need to apply function on that swipe and not the swiped() itself, how do i do it?

Something like that, but it doesn't actually prevent the card from changing

Снимок экрана 2023-08-19 в 03 58 01
@3DJakob
Copy link
Owner

3DJakob commented Oct 2, 2023

Maybe you could use a state with the prevented directions and update it to include "down" when it should be prevented? I'm aware however that there might be a bug tied to updating this variable on the fly but I'm working on getting a fix out next release.

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