mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1140578 - Simplify some code. r=mchang
This commit is contained in:
parent
47aecf73bc
commit
a7d9fcaed7
@ -111,18 +111,11 @@ GeckoTouchDispatcher::NotifyTouch(MultiTouchInput& aTouch, TimeStamp aEventTime)
|
|||||||
|
|
||||||
if (aTouch.mType == MultiTouchInput::MULTITOUCH_MOVE) {
|
if (aTouch.mType == MultiTouchInput::MULTITOUCH_MOVE) {
|
||||||
MutexAutoLock lock(mTouchQueueLock);
|
MutexAutoLock lock(mTouchQueueLock);
|
||||||
|
mTouchMoveEvents.push_back(aTouch);
|
||||||
if (mResamplingEnabled) {
|
if (mResamplingEnabled) {
|
||||||
mTouchMoveEvents.push_back(aTouch);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mTouchMoveEvents.empty()) {
|
|
||||||
mTouchMoveEvents.push_back(aTouch);
|
|
||||||
} else {
|
|
||||||
// Coalesce touch move events
|
|
||||||
mTouchMoveEvents.back() = aTouch;
|
|
||||||
}
|
|
||||||
|
|
||||||
layers::APZThreadUtils::RunOnControllerThread(NewRunnableMethod(
|
layers::APZThreadUtils::RunOnControllerThread(NewRunnableMethod(
|
||||||
this, &GeckoTouchDispatcher::DispatchTouchMoveEvents, TimeStamp::Now()));
|
this, &GeckoTouchDispatcher::DispatchTouchMoveEvents, TimeStamp::Now()));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user