minor scrolling fix and ellipsize fix

This commit is contained in:
Ritvik Saraf 2018-12-07 06:45:33 +05:30
parent ff90f257cc
commit c1a67ff1f8
2 changed files with 14 additions and 1 deletions

View file

@ -30,6 +30,9 @@ public final class FlingBehavior extends AppBarLayout.Behavior {
// We're scrolling down
} else {
// We're scrolling up
if (mOffsetAnimator != null && mOffsetAnimator.isRunning()) {
mOffsetAnimator.cancel();
}
min = -child.getUpNestedPreScrollRange();
max = 0;
consumed[1] = scroll(coordinatorLayout, child, dy, min, max);