recycler-fast-scroll icon indicating copy to clipboard operation
recycler-fast-scroll copied to clipboard

View half-hidden state sometimes happen in VisibilityAnimationManager

Open cdongieux opened this issue 7 years ago • 2 comments

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();
        }
    }

cdongieux avatar Mar 23 '17 11:03 cdongieux

i have exactly the same problem, this occurs often and easily if we provide the custom animator and set higher duration

hendrawd avatar Jul 12 '17 08:07 hendrawd

Maybe it is related to https://github.com/FutureMind/recycler-fast-scroll/pull/19

hendrawd avatar Jul 12 '17 08:07 hendrawd