am 7c1e8533: Call onCancelBatchInput only when onStartBatchInput has been called
* commit '7c1e853387f71235fd0bd8051246f7a95be5ed53': Call onCancelBatchInput only when onStartBatchInput has been calledmain
commit
c366ea036b
|
@ -791,6 +791,9 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
|
||||||
|
|
||||||
private void cancelBatchInput() {
|
private void cancelBatchInput() {
|
||||||
sPointerTrackerQueue.cancelAllPointerTracker();
|
sPointerTrackerQueue.cancelAllPointerTracker();
|
||||||
|
if (!sInGesture) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
sInGesture = false;
|
sInGesture = false;
|
||||||
if (DEBUG_LISTENER) {
|
if (DEBUG_LISTENER) {
|
||||||
Log.d(TAG, String.format("[%d] onCancelBatchInput", mPointerId));
|
Log.d(TAG, String.format("[%d] onCancelBatchInput", mPointerId));
|
||||||
|
@ -1208,9 +1211,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
|
||||||
printTouchEvent("onCancelEvt:", x, y, eventTime);
|
printTouchEvent("onCancelEvt:", x, y, eventTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sInGesture) {
|
cancelBatchInput();
|
||||||
cancelBatchInput();
|
|
||||||
}
|
|
||||||
sPointerTrackerQueue.cancelAllPointerTracker();
|
sPointerTrackerQueue.cancelAllPointerTracker();
|
||||||
sPointerTrackerQueue.releaseAllPointers(eventTime);
|
sPointerTrackerQueue.releaseAllPointers(eventTime);
|
||||||
onCancelEventInternal();
|
onCancelEventInternal();
|
||||||
|
|
Loading…
Reference in New Issue