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

Commit 708c5fd1 authored by Ameer Armaly's avatar Ameer Armaly Committed by Android (Google) Code Review
Browse files

Merge "Fix ghost pointer problem when transitioning from dragging to delegating." into main

parents 10ab982e 81c238cb
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -974,6 +974,10 @@ public class TouchExplorer extends BaseEventStreamTransformation
                clear(event, policyFlags);
                return;
            case ACTION_POINTER_DOWN:
                if (mDraggingPointerId != INVALID_POINTER_ID) {
                    mDispatcher.sendMotionEvent(
                            event, ACTION_UP, rawEvent, pointerIdBits, policyFlags);
                }
                if (mState.isServiceDetectingGestures()) {
                    mAms.sendMotionEventToListeningServices(rawEvent);
                    return;
@@ -981,10 +985,6 @@ public class TouchExplorer extends BaseEventStreamTransformation
                // We are in dragging state so we have two pointers and another one
                // goes down => delegate the three pointers to the view hierarchy
                mState.startDelegating();
                if (mDraggingPointerId != INVALID_POINTER_ID) {
                    mDispatcher.sendMotionEvent(
                            event, ACTION_UP, rawEvent, pointerIdBits, policyFlags);
                }
                mDispatcher.sendDownForAllNotInjectedPointers(event, policyFlags);
                break;
            case ACTION_MOVE: