mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-10 05:47:04 +00:00
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:
parent
83c89028f6
commit
d790c8e3c3
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user