Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54b9e5ba authored by Chet Haase's avatar Chet Haase
Browse files

Fix Scroller interpolation

The ViscousFluid interpolator simply returns the input value and not the
interpolation of that value.

Issue #16815073 Scroller.ViscousFluidInterpolator short circuited

Change-Id: Ifa189026c1396a42a2348260a2a54cf0c3caad08
parent 4cf9f007
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -589,10 +589,10 @@ public class Scroller {
        @Override
        public float getInterpolation(float input) {
            final float interpolated = VISCOUS_FLUID_NORMALIZE * viscousFluid(input);
            if (input > 0) {
                return input + VISCOUS_FLUID_OFFSET;
            if (interpolated > 0) {
                return interpolated + VISCOUS_FLUID_OFFSET;
            }
            return input;
            return interpolated;
        }
    }
}