зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1217818 - Minor refactoring to reuse a function. r=botond
--HG-- extra : commitid : 3KFxfvP88Fq
This commit is contained in:
Родитель
28bf53e284
Коммит
19ae3d2b17
|
@ -265,14 +265,9 @@ APZEventState::ProcessTouchEvent(const WidgetTouchEvent& aEvent,
|
|||
switch (aEvent.mMessage) {
|
||||
case eTouchStart: {
|
||||
mTouchEndCancelled = false;
|
||||
if (mPendingTouchPreventedResponse) {
|
||||
// We can enter here if we get two TOUCH_STARTs in a row and didn't
|
||||
// respond to the first one. Respond to it now.
|
||||
mContentReceivedInputBlockCallback(mPendingTouchPreventedGuid,
|
||||
mPendingTouchPreventedBlockId, false);
|
||||
sentContentResponse = true;
|
||||
mPendingTouchPreventedResponse = false;
|
||||
}
|
||||
sentContentResponse = SendPendingTouchPreventedResponse(false);
|
||||
// sentContentResponse can be true here if we get two TOUCH_STARTs in a row
|
||||
// and just responded to the first one.
|
||||
if (isTouchPrevented) {
|
||||
mContentReceivedInputBlockCallback(aGuid, aInputBlockId, isTouchPrevented);
|
||||
sentContentResponse = true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче