Do not skip PostHandleEvent for synthesized mouse moves. b=20022 Thanks to Neil for finding the problem. r+sr=roc

This commit is contained in:
dbaron%dbaron.org 2005-09-16 06:04:25 +00:00
parent 83c89028f6
commit d790c8e3c3

View File

@ -6189,10 +6189,10 @@ PresShell::HandleEventInternal(nsEvent* aEvent, nsIView *aView,
aStatus, aView);
// 2. Give event to the DOM for third party and JS use.
if ((GetCurrentEventFrame()) && NS_SUCCEEDED(rv) &&
if ((GetCurrentEventFrame()) && NS_SUCCEEDED(rv)) {
// We want synthesized mouse moves to cause mouseover and mouseout
// DOM events (PreHandleEvent above), but not mousemove DOM events.
!IsSynthesizedMouseMove(aEvent)) {
if (!IsSynthesizedMouseMove(aEvent)) {
if (mCurrentEventContent) {
rv = mCurrentEventContent->HandleDOMEvent(mPresContext, aEvent, nsnull,
aFlags, aStatus);
@ -6242,6 +6242,7 @@ PresShell::HandleEventInternal(nsEvent* aEvent, nsIView *aView,
aStatus);
}
}
}
// 4. Give event to event manager for post event state changes and
// generation of synthetic events.