-
Notifications
You must be signed in to change notification settings - Fork 183
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
I am unable to set the card to its original position( Now it's Discarded Automatically) Once I move card. #86
Comments
hi, do you mean that when you move a little you cant set it back and it will always swipe? |
if this is the problem you need to add logic to swipeEnd() callback. @OverRide //450 is the minimum distance that user have to move the card for swipr, you can play with that parameter as you want. |
Yes.Exactly it does.
…On Tue, Aug 1, 2017 at 11:44 AM, maksim ***@***.***> wrote:
hi, do you mean that when you move a little you cant set it back and it
will always swipe?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#86 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AbBf3fyU9kdkGlEjWkSrlDvGWabreGUBks5sTsI1gaJpZM4N4SFI>
.
|
Let me try. I will let u know.Thanks for reply.
…On Tue, Aug 1, 2017 at 11:51 AM, maksim ***@***.***> wrote:
if this is the problem you need to add logic to swipeEnd() callback.
@OverRide <https://github.com/override>
public boolean swipeEnd(int section, float distance) {
//Toast.makeText(this,"swipe end",Toast.LENGTH_SHORT).show();
Log.i("LogTag","SwipeEnd: "+distance);
if(distance > 450)
return true;
else
return false;
}
//450 is the minimum distance that user have to move the card for swipr,
you can play with that parameter as you want.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#86 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AbBf3Z6EPhgBnwx_x4abUpEbwUYQpzr9ks5sTsPbgaJpZM4N4SFI>
.
|
another way to control minimum travel for discard is : |
No description provided.
The text was updated successfully, but these errors were encountered: