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

Commit 9eb4e698 authored by Prabir Pradhan's avatar Prabir Pradhan
Browse files

Address ghost spots that show up after touchscreen is re-enabled

When touches are cancelled as a result of a touchscreen being disabled,
the pointers that were down when the touchscreen was disabled show up as
touch spots briefly while a new pointer goes down after the touchscreen
is enabled. Remove these ghost touches.

Bug: 216718625
Test: manual, see bug
Change-Id: I4fa381da9ca0e285dff4b405cad644fcea840d9e
parent 72f6d05c
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1657,9 +1657,8 @@ void TouchInputMapper::cookAndDispatch(nsecs_t when, nsecs_t readTime) {

        dispatchPointerUsage(when, readTime, policyFlags, pointerUsage);
    } else {
        updateTouchSpots();

        if (!mCurrentMotionAborted) {
            updateTouchSpots();
            dispatchButtonRelease(when, readTime, policyFlags);
            dispatchHoverExit(when, readTime, policyFlags);
            dispatchTouches(when, readTime, policyFlags);