Bug 725773 - Only compress touch move events on Gonk, r=cjones

This commit is contained in:
Michael Wu 2012-02-09 14:37:22 -08:00
parent dfcf763a85
commit 9eee32a45f

View File

@ -587,7 +587,10 @@ GeckoInputDispatcher::notifyMotion(nsecs_t eventTime,
}
{
MutexAutoLock lock(mQueueLock);
if (!mEventQueue.empty() && mEventQueue.back().type == UserInputData::MOTION_DATA)
if (!mEventQueue.empty() &&
mEventQueue.back().type == UserInputData::MOTION_DATA &&
(mEventQueue.back().action & AMOTION_EVENT_ACTION_MASK) ==
AMOTION_EVENT_ACTION_MOVE)
mEventQueue.back() = data;
else
mEventQueue.push(data);