mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Fix mouse exit so it goes to the targetted view rather than the view the mouse may or may not be over as it leaves the main widget. b=144880 r=ccarlen@netscape.com sr=roc+moz@cs.cmu.edu a=asa@mozilla.org
This commit is contained in:
parent
8722e3bb55
commit
f27ea2fe10
@ -2152,7 +2152,9 @@ nsEventStatus nsViewManager::HandleEvent(nsView* aView, nsGUIEvent* aEvent, PRBo
|
||||
GetViewObserver(*getter_AddRefs(obs));
|
||||
|
||||
// accessibility events and key events are dispatched directly to the focused view
|
||||
if (aEvent->eventStructType == NS_ACCESSIBLE_EVENT || aEvent->message == NS_CONTEXTMENU_KEY
|
||||
if (aEvent->eventStructType == NS_ACCESSIBLE_EVENT
|
||||
|| aEvent->message == NS_CONTEXTMENU_KEY
|
||||
|| aEvent->message == NS_MOUSE_EXIT
|
||||
|| NS_IS_KEY_EVENT(aEvent) || NS_IS_IME_EVENT(aEvent) || NS_IS_FOCUS_EVENT(aEvent)) {
|
||||
nsEventStatus status = nsEventStatus_eIgnore;
|
||||
if (obs) {
|
||||
|
Loading…
Reference in New Issue
Block a user