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

Commit 1310e094 authored by Winson Chung's avatar Winson Chung
Browse files

Adding pointer index check to recents touch handler.

- Also fix issue with wrong pointer index used to update last
  position when pointer changes

Bug: 65030830
Test: Manual - multitouch in recents
Change-Id: I75249594f48619b123b79e0188a0dc05a52b5416
parent 241d9878
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -256,6 +256,9 @@ class TaskStackViewTouchHandler implements SwipeHelper.Callback {
            }
            case MotionEvent.ACTION_MOVE: {
                int activePointerIndex = ev.findPointerIndex(mActivePointerId);
                if (activePointerIndex == -1) {
                    break;
                }
                int y = (int) ev.getY(activePointerIndex);
                int x = (int) ev.getX(activePointerIndex);
                if (!mIsScrolling) {