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

Commit e023d505 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Ignore non-pointer events in LetterboxScrollProcessor" into main

parents c3337e29 5c1462b4
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -78,6 +78,11 @@ public class LetterboxScrollProcessor {
    @Nullable
    @VisibleForTesting(visibility = PACKAGE)
    public List<MotionEvent> processMotionEvent(@NonNull MotionEvent motionEvent) {
        if (!motionEvent.isFromSource(InputDevice.SOURCE_CLASS_POINTER)) {
            // This is a non-pointer event that doesn't correspond to any location on the screen.
            // Ignore it.
            return null;
        }
        mProcessedEvents.clear();
        final Rect appBounds = getAppBounds();