Closed liuyaxin closed 5 years ago
@liuyaxin Swiped card always returns from bottom. Currently, we can't specify rewind direction.
You don't know what i means. When I swiped a card to left, the onCardSwiped is called with a parameter direction "bottom". Maybe "left" should be returned? So as I swiped a card to right.
I have solved the problem, the code is like this:
removeAndRecycleView(getTopView(), recycler);
final Direction direction = state.getDirection();
state.next(state.status.toAnimatedStatus());
state.topPosition++;
state.dx = 0;
state.dy = 0;
if (state.topPosition == state.targetPosition) {
state.targetPosition = RecyclerView.NO_POSITION;
}
Yes. Always return Bottom. Why not Left and Right like previous version. So we can detect Left Swipe or Right Swipe. This version is very strange
Please fix it! A very important feature! Thanks and keep up the great work, please!!! Thank you 👍
@liuyaxin Sorry, I misunderstood what you said. This is a bug from ver. 2.3.0.
@liuyaxin @dungnguyendotme @valiiscoding I will fix this bug as soon as possible.
@liuyaxin @dungnguyendotme @valiiscoding This issue has been fixed in ver. 2.3.2.
okey~ very great work~!
so how can i judge which direction the previous card swiped?