Bug 1055532 - Don't dispatch useless widget events from gonk. r=mwu

This commit is contained in:
Kartikaya Gupta 2014-08-19 10:57:29 -04:00
parent 047b7b39fe
commit 2328aecd74

View File

@ -216,11 +216,6 @@ sendMouseEvent(UserInputData& data, nsEventStatus status)
msg = NS_MOUSE_BUTTON_UP;
break;
default:
msg = NS_EVENT_NULL;
break;
}
if (msg == NS_EVENT_NULL) {
return;
}
@ -300,8 +295,7 @@ sendTouchEvent(UserInputData& data, bool* captured)
msg = NS_TOUCH_CANCEL;
break;
default:
msg = NS_EVENT_NULL;
break;
return nsEventStatus_eIgnore;
}
WidgetTouchEvent event(true, msg, nullptr);