Merge "Fix a bug synthesizing cancelation events for motions." into gingerbread
This commit is contained in:
@ -3320,7 +3320,7 @@ void InputDispatcher::InputState::synthesizeCancelationEvents(nsecs_t currentTim
|
||||
}
|
||||
}
|
||||
|
||||
for (size_t i = 0; i < mMotionMementos.size(); i++) {
|
||||
for (size_t i = 0; i < mMotionMementos.size(); ) {
|
||||
const MotionMemento& memento = mMotionMementos.itemAt(i);
|
||||
if (shouldCancelEvent(memento.source, options)) {
|
||||
outEvents.push(allocator->obtainMotionEntry(currentTime,
|
||||
|
Reference in New Issue
Block a user