diff --git a/quickstep/src/com/android/quickstep/inputconsumers/TaskbarUnstashInputConsumer.java b/quickstep/src/com/android/quickstep/inputconsumers/TaskbarUnstashInputConsumer.java index 5ad55ae177..49bff8d065 100644 --- a/quickstep/src/com/android/quickstep/inputconsumers/TaskbarUnstashInputConsumer.java +++ b/quickstep/src/com/android/quickstep/inputconsumers/TaskbarUnstashInputConsumer.java @@ -228,10 +228,13 @@ public class TaskbarUnstashInputConsumer extends DelegateInputConsumer { } float velocityYPxPerS = mVelocityTracker.getYVelocity(); + float dY = Math.abs(mLastPos.y - mDownPos.y); if (mCanPlayTaskbarBgAlphaAnimation && mMotionMoveCount >= NUM_MOTION_MOVE_THRESHOLD // Arbitrary value && velocityYPxPerS != 0 // Ignore these - && velocityYPxPerS >= mTaskbarSlowVelocityYThreshold) { + && velocityYPxPerS >= mTaskbarSlowVelocityYThreshold + && dY != 0 + && dY > mTouchSlop) { mTaskbarActivityContext.playTaskbarBackgroundAlphaAnimation(); mCanPlayTaskbarBgAlphaAnimation = false; }