mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 08:13:35 +00:00
Bug 1055532 - Don't dispatch useless widget events from gonk. r=mwu
This commit is contained in:
parent
047b7b39fe
commit
2328aecd74
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user