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

Commit 7d039fbe authored by Romain Guy's avatar Romain Guy Committed by Android Code Review
Browse files

Merge "Fix x coordinate of the ACTION_UP event in TouchUtils.drag() method"

parents 4766defd 8621cfa4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -773,7 +773,7 @@ public class TouchUtils {
        float xStep = (toX - fromX) / stepCount;

        MotionEvent event = MotionEvent.obtain(downTime, eventTime,
                MotionEvent.ACTION_DOWN, fromX, y, 0);
                MotionEvent.ACTION_DOWN, x, y, 0);
        inst.sendPointerSync(event);
        inst.waitForIdleSync();

@@ -787,7 +787,7 @@ public class TouchUtils {
        }

        eventTime = SystemClock.uptimeMillis();
        event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, fromX, y, 0);
        event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0);
        inst.sendPointerSync(event);
        inst.waitForIdleSync();
    }