Merge "Reduce animation completion epsilon to avoid early end." into sc-dev

This commit is contained in:
TreeHugger Robot
2021-04-28 00:08:30 +00:00
committed by Android (Google) Code Review

View File

@@ -106,13 +106,13 @@ public class EdgeEffect {
* The velocity threshold before the spring animation is considered settled. * The velocity threshold before the spring animation is considered settled.
* The idea here is that velocity should be less than 0.1 pixel per second. * The idea here is that velocity should be less than 0.1 pixel per second.
*/ */
private static final double VELOCITY_THRESHOLD = 0.1; private static final double VELOCITY_THRESHOLD = 0.01;
/** /**
* The value threshold before the spring animation is considered close enough to * The value threshold before the spring animation is considered close enough to
* the destination to be settled. This should be around 0.01 pixel. * the destination to be settled. This should be around 0.01 pixel.
*/ */
private static final double VALUE_THRESHOLD = 0.01; private static final double VALUE_THRESHOLD = 0.001;
/** /**
* The natural frequency of the stretch spring. * The natural frequency of the stretch spring.