recycler-fast-scroll
recycler-fast-scroll copied to clipboard
View half-hidden state sometimes happen in VisibilityAnimationManager
There is a little bug in VisibilityAnimationManager:
- grab the handle => the bubble shows up
- release the handle
- grab the handle again at the moment the bubble hide animation starts
Bug => the bubble is in a half-hidden state
To fix this, you have to start the show animation if the hide animation is still running:
@Override
public void show() {
boolean hideIsRunning = hideAnimator.isRunning();
hideAnimator.cancel();
if (view.getVisibility() == View.INVISIBLE || hideIsRunning) {
view.setVisibility(View.VISIBLE);
updatePivot();
showAnimator.start();
}
}
i have exactly the same problem, this occurs often and easily if we provide the custom animator and set higher duration
Maybe it is related to https://github.com/FutureMind/recycler-fast-scroll/pull/19