You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the great library. I would like to make these improvements. I will create a Pull Request if it is OK.
Suggestion
I would like to add a swipe release event handler or run onSwipeRequirementUnfulfilled on swipe released.
Problem
There is a process that can only swipe left and right. However, after two right swipes are executed, the process is not able to perform a right swipe, but only a left swipe.
In this case, I need to inform the user that the right swipe cannot be executed due to the limit. So we change preventSwipe to disable right swiping, and at the same time we use onSwipeRequirementFulfilled to indicate that right swiping is not possible when the right position is reached.
The problem is that I want to turn off the onSwipeRequirementFulfilled when I swipe release, but I can't turn it off because I can't handle the swipe release.
If I swipe back to the original position without releasing the swipe with a right swipe, onSwipeRequirementUnfulfilled can be executed, so I can turn it off, but if I swipe to a position where onSwipeRequirementUnfulfilled does not fire, I cannot turn it off. If the swipe is released at a swipe position where onSwipeRequirementUnfulfilled does not fire, it cannot be handled.
Thanks for the great library. I would like to make these improvements. I will create a Pull Request if it is OK.
Suggestion
I would like to add a swipe release event handler or run
onSwipeRequirementUnfulfilled
on swipe released.Problem
There is a process that can only swipe left and right. However, after two right swipes are executed, the process is not able to perform a right swipe, but only a left swipe.
In this case, I need to inform the user that the right swipe cannot be executed due to the limit. So we change
preventSwipe
to disable right swiping, and at the same time we useonSwipeRequirementFulfilled
to indicate that right swiping is not possible when the right position is reached.The problem is that I want to turn off the
onSwipeRequirementFulfilled
when I swipe release, but I can't turn it off because I can't handle the swipe release.If I swipe back to the original position without releasing the swipe with a right swipe,
onSwipeRequirementUnfulfilled
can be executed, so I can turn it off, but if I swipe to a position whereonSwipeRequirementUnfulfilled
does not fire, I cannot turn it off. If the swipe is released at a swipe position whereonSwipeRequirementUnfulfilled
does not fire, it cannot be handled.sample program has been created.
Behavior can be seen here.
Improvement Proposal
onSwipeRequirementUnfulfilled
on swipe release.I think the first idea is the most versatile, so I recommend the first idea.
The text was updated successfully, but these errors were encountered: