diff options
Diffstat (limited to 'src/com/android/launcher3/allapps/VerticalPullDetector.java')
-rw-r--r-- | src/com/android/launcher3/allapps/VerticalPullDetector.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/launcher3/allapps/VerticalPullDetector.java b/src/com/android/launcher3/allapps/VerticalPullDetector.java index 8bb845aa6..6eab1c078 100644 --- a/src/com/android/launcher3/allapps/VerticalPullDetector.java +++ b/src/com/android/launcher3/allapps/VerticalPullDetector.java @@ -26,7 +26,7 @@ public class VerticalPullDetector { /** * The minimum release velocity in pixels per millisecond that triggers fling.. */ - private static final float RELEASE_VELOCITY_PX_MS = 1.0f; + public static final float RELEASE_VELOCITY_PX_MS = 1.0f; /** * The time constant used to calculate dampening in the low-pass filter of scroll velocity. @@ -87,6 +87,10 @@ public class VerticalPullDetector { return mState == ScrollState.SETTLING; } + public boolean isDraggingState() { + return mState == ScrollState.DRAGGING; + } + private float mDownX; private float mDownY; private float mDownMillis; |