Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a28d5aff authored by Jeff Brown's avatar Jeff Brown Committed by Android (Google) Code Review
Browse files

Merge "Fix a bug synthesizing cancelation events for motions." into gingerbread

parents ece7e11b a1160a79
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,