Fix Abrupt Swipe Animation
The Swipe Animation while changing the direction of swipe caused jumps. This is fixed in this release.
setSwipeMaxChangeAngle
method has been added to the SwipeDecor
that defines the maximum angle change allowed for subsequent card movement while swiping.
Example:
For allowing only up to 1 degree rotation increment (default is 2 degrees) keep it smaller for smoother animation.
swipeDecor().setSwipeMaxChangeAngle(1f)
Suggestion:
For smooth transition of card rotation keep setHeightSwipeDistFactor
and setWidthSwipeDistFactor
smaller and setSwipeMaxChangeAngle
less than 2 degrees(default).
mSwipeView.getBuilder()
.setHeightSwipeDistFactor(8)
.setWidthSwipeDistFactor(4)