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; msg = NS_MOUSE_BUTTON_UP;
break; break;
default: default:
msg = NS_EVENT_NULL;
break;
}
if (msg == NS_EVENT_NULL) {
return; return;
} }
@ -300,8 +295,7 @@ sendTouchEvent(UserInputData& data, bool* captured)
msg = NS_TOUCH_CANCEL; msg = NS_TOUCH_CANCEL;
break; break;
default: default:
msg = NS_EVENT_NULL; return nsEventStatus_eIgnore;
break;
} }
WidgetTouchEvent event(true, msg, nullptr); WidgetTouchEvent event(true, msg, nullptr);