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

Commit 15ca5bfb authored by Prabir Pradhan's avatar Prabir Pradhan Committed by Android (Google) Code Review
Browse files

Merge "Do not slide event into the new window which can't receive motion event" into main

parents 3d10cb4e bf069a34
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -2558,9 +2558,9 @@ std::vector<InputTarget> InputDispatcher::findTouchedWindowTargetsLocked(
                return {};
                return {};
            }
            }


            // Drop touch events if requested by input feature
            // Do not slide events to the window which can not receive motion event
            if (newTouchedWindowHandle != nullptr &&
            if (newTouchedWindowHandle != nullptr &&
                shouldDropInput(entry, newTouchedWindowHandle)) {
                !canWindowReceiveMotionLocked(newTouchedWindowHandle, entry)) {
                newTouchedWindowHandle = nullptr;
                newTouchedWindowHandle = nullptr;
            }
            }