diff options
author | Jeff Brown <jeffbrown@google.com> | 2010-10-11 18:22:53 -0700 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2010-10-11 18:22:53 -0700 |
commit | 316237d554bc9422274209d2a51fe43a3d5950b5 (patch) | |
tree | e64fd19e2a6092fb62db98ea75145e0ffc744405 /libs | |
parent | abcb347783a888ffda26c4fe19ae71aac89ca484 (diff) | |
download | frameworks_native-316237d554bc9422274209d2a51fe43a3d5950b5.zip frameworks_native-316237d554bc9422274209d2a51fe43a3d5950b5.tar.gz frameworks_native-316237d554bc9422274209d2a51fe43a3d5950b5.tar.bz2 |
Fix a bug synthesizing cancelation events for motions.
Change-Id: I881c0fa16c1d22c4b1b6cca24deb0105405ff5b0
Diffstat (limited to 'libs')
-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 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, |