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

Commit 18acb970 authored by Tom Cherry's avatar Tom Cherry Committed by Android (Google) Code Review
Browse files

Merge "Do not synthesize events for relative mouse movement."

parents 8bdbdf94 b5ea1693
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -7087,7 +7087,11 @@ public final class ViewRootImpl implements ViewParent,
                final MotionEvent event = (MotionEvent)q.mEvent;
                final int source = event.getSource();
                if ((source & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) {
                    // Do not synthesize events for relative mouse movement. If apps opt into
                    // relative mouse movement they must be prepared to handle the events.
                    if (!event.isFromSource(InputDevice.SOURCE_MOUSE_RELATIVE)) {
                        mTrackball.process(event);
                    }
                    return FINISH_HANDLED;
                } else if ((source & InputDevice.SOURCE_CLASS_JOYSTICK) != 0) {
                    mJoystick.process(event);