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

Commit f4715940 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Fix velocity when dragging up from nav bar

Change-Id: I4afd0f41050ffaecd05de455afda5d006be2c30b
parent 97ba86ac
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -197,8 +197,8 @@ public class NavigationBarGestureHelper extends GestureDetector.SimpleOnGestureL
                                ? (int) event.getRawY()
                                : (int) event.getRawX(),
                        !mIsVertical
                                ? mVelocityTracker.getXVelocity()
                                : mVelocityTracker.getYVelocity());
                                ? mVelocityTracker.getYVelocity()
                                : mVelocityTracker.getXVelocity());
            } else if (mDragMode == DRAG_MODE_RECENTS) {
                mRecentsComponent.onDraggingInRecentsEnded(mVelocityTracker.getYVelocity());
            }