Merge "Adjust down event location when two-finger dragging in TouchExplorer" into rvc-dev

This commit is contained in:
Minche Li
2020-04-28 01:43:57 +00:00
committed by Android (Google) Code Review

View File

@@ -566,6 +566,7 @@ public class TouchExplorer extends BaseEventStreamTransformation
// a given distance perform a drag.
mState.startDragging();
mDraggingPointerId = pointerId;
adjustEventLocationForDrag(event);
event.setEdgeFlags(mReceivedPointerTracker.getLastReceivedDownEdgeFlags());
mDispatcher.sendMotionEvent(
event, MotionEvent.ACTION_DOWN, rawEvent, pointerIdBits, policyFlags);