diff options
| author | 2010-10-11 20:22:02 -0700 | |
|---|---|---|
| committer | 2010-10-11 20:22:02 -0700 | |
| commit | a28d5aff5466a55149b9e6f9cd908fcc225c25ff (patch) | |
| tree | dd4ea71e6f5c4915c61fbd4a4e61b7b95be69795 /libs/ui/InputDispatcher.cpp | |
| parent | ece7e11b3723140b31d28bae6ed6f1ae30e5d802 (diff) | |
| parent | a1160a798b688370bed3642a105dfeb7fba2f5f3 (diff) | |
Merge "Fix a bug synthesizing cancelation events for motions." into gingerbread
Diffstat (limited to 'libs/ui/InputDispatcher.cpp')
| -rw-r--r-- | libs/ui/InputDispatcher.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ui/InputDispatcher.cpp b/libs/ui/InputDispatcher.cpp index 41b6ff318d47..054042f1df02 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, |