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

Commit 2ea44b9a authored by Arthur Hung's avatar Arthur Hung
Browse files

Should only add gesture monitors when first down

To prevent adding the duplicated gesture monitors when next pointer down.

Test: atest inputflinger_test
Bug: 201647070
Change-Id: Ia3a678085a95dfcb14b35fb8f4b52920054c6339
parent fbfa5722
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2144,8 +2144,9 @@ InputEventInjectionResult InputDispatcher::findTouchedWindowTargetsLocked(
            // be delivered to a new window which supports split touch.
            tempTouchState.split = true;
        }

        if (isDown) {
            tempTouchState.addGestureMonitors(newGestureMonitors);
        }
    } else {
        /* Case 2: Pointer move, up, cancel or non-splittable pointer down. */