Fix a bug synthesizing cancelation events for motions.

Change-Id: I881c0fa16c1d22c4b1b6cca24deb0105405ff5b0
This commit is contained in:
Jeff Brown
2010-10-11 18:22:53 -07:00
parent de846ac659
commit a1160a798b

View File

@@ -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,