Merge "Adjust down event location when two-finger dragging in TouchExplorer" into rvc-dev am: 4ce06dff0a am: bf0917323f
Change-Id: Ifca5cf1c8878caa2ff5db60c865cd78f2008e1dc
This commit is contained in:
@@ -566,6 +566,7 @@ public class TouchExplorer extends BaseEventStreamTransformation
|
|||||||
// a given distance perform a drag.
|
// a given distance perform a drag.
|
||||||
mState.startDragging();
|
mState.startDragging();
|
||||||
mDraggingPointerId = pointerId;
|
mDraggingPointerId = pointerId;
|
||||||
|
adjustEventLocationForDrag(event);
|
||||||
event.setEdgeFlags(mReceivedPointerTracker.getLastReceivedDownEdgeFlags());
|
event.setEdgeFlags(mReceivedPointerTracker.getLastReceivedDownEdgeFlags());
|
||||||
mDispatcher.sendMotionEvent(
|
mDispatcher.sendMotionEvent(
|
||||||
event, MotionEvent.ACTION_DOWN, rawEvent, pointerIdBits, policyFlags);
|
event, MotionEvent.ACTION_DOWN, rawEvent, pointerIdBits, policyFlags);
|
||||||
|
|||||||
Reference in New Issue
Block a user