mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Send Click events to frames as well as content.
This commit is contained in:
parent
977968ce0a
commit
e594bb9b7c
@ -412,6 +412,10 @@ nsEventStateManager::CheckForAndDispatchClick(nsIPresContext& aPresContext,
|
||||
ret = mouseContent->HandleDOMEvent(aPresContext, &event, nsnull, NS_EVENT_FLAG_INIT, aStatus);
|
||||
NS_RELEASE(mouseContent);
|
||||
}
|
||||
|
||||
if (nsnull != mCurrentTarget) {
|
||||
ret = mCurrentTarget->HandleEvent(aPresContext, &event, aStatus);
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
@ -412,6 +412,10 @@ nsEventStateManager::CheckForAndDispatchClick(nsIPresContext& aPresContext,
|
||||
ret = mouseContent->HandleDOMEvent(aPresContext, &event, nsnull, NS_EVENT_FLAG_INIT, aStatus);
|
||||
NS_RELEASE(mouseContent);
|
||||
}
|
||||
|
||||
if (nsnull != mCurrentTarget) {
|
||||
ret = mCurrentTarget->HandleEvent(aPresContext, &event, aStatus);
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
@ -662,8 +662,7 @@ nsToolboxFrame :: HandleEvent ( nsIPresContext& aPresContext,
|
||||
|
||||
switch ( aEvent->message ) {
|
||||
|
||||
// case NS_MOUSE_LEFT_CLICK:
|
||||
case NS_MOUSE_LEFT_BUTTON_UP:
|
||||
case NS_MOUSE_LEFT_CLICK:
|
||||
OnMouseLeftClick ( aEvent->point );
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user