зеркало из 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) {
|
switch (aEvent.mMessage) {
|
||||||
case eTouchStart: {
|
case eTouchStart: {
|
||||||
mTouchEndCancelled = false;
|
mTouchEndCancelled = false;
|
||||||
if (mPendingTouchPreventedResponse) {
|
sentContentResponse = SendPendingTouchPreventedResponse(false);
|
||||||
// We can enter here if we get two TOUCH_STARTs in a row and didn't
|
// sentContentResponse can be true here if we get two TOUCH_STARTs in a row
|
||||||
// respond to the first one. Respond to it now.
|
// and just responded to the first one.
|
||||||
mContentReceivedInputBlockCallback(mPendingTouchPreventedGuid,
|
|
||||||
mPendingTouchPreventedBlockId, false);
|
|
||||||
sentContentResponse = true;
|
|
||||||
mPendingTouchPreventedResponse = false;
|
|
||||||
}
|
|
||||||
if (isTouchPrevented) {
|
if (isTouchPrevented) {
|
||||||
mContentReceivedInputBlockCallback(aGuid, aInputBlockId, isTouchPrevented);
|
mContentReceivedInputBlockCallback(aGuid, aInputBlockId, isTouchPrevented);
|
||||||
sentContentResponse = true;
|
sentContentResponse = true;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче