Prevent extra animation when scrolling the recycler view.
Change-Id: I362b557ae63a2cbef77ebf7fac9a7a27adeabb49
This commit is contained in:
1 parent
96ea5908c5
commit
4c7fc62ae2
1 file changed
+5
-3
@@ -169,10 +169,12 @@ public class BaseRecyclerViewFastScrollBar {
|
||||
break;
|
||||
case MotionEvent.ACTION_UP:
|
||||
case MotionEvent.ACTION_CANCEL:
|
||||
mIsDragging = false;
|
||||
mTouchOffset = 0;
|
||||
mPopup.animateVisibility(false);
|
||||
animateScrollbar(false);
|
||||
if (mIsDragging) {
|
||||
mIsDragging = false;
|
||||
mPopup.animateVisibility(false);
|
||||
animateScrollbar(false);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user