From a1160a798b688370bed3642a105dfeb7fba2f5f3 Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Mon, 11 Oct 2010 18:22:53 -0700 Subject: Fix a bug synthesizing cancelation events for motions. Change-Id: I881c0fa16c1d22c4b1b6cca24deb0105405ff5b0 --- libs/ui/InputDispatcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/ui/InputDispatcher.cpp') diff --git a/libs/ui/InputDispatcher.cpp b/libs/ui/InputDispatcher.cpp index 41b6ff3..054042f 100644 --- a/libs/ui/InputDispatcher.cpp +++ b/libs/ui/InputDispatcher.cpp @@ -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, -- cgit v1.1