mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Attempt to fix pageload regression/oscillation from bug 20022. r+sr=bryner
This commit is contained in:
parent
e5632337c1
commit
cefa77d7c2
@ -1875,7 +1875,10 @@ NS_IMETHODIMP nsViewManager::DispatchEvent(nsGUIEvent *aEvent, nsEventStatus *aS
|
||||
|
||||
default:
|
||||
{
|
||||
if (NS_IS_MOUSE_EVENT(aEvent) || NS_IS_KEY_EVENT(aEvent) ||
|
||||
if ((NS_IS_MOUSE_EVENT(aEvent) &&
|
||||
NS_STATIC_CAST(nsMouseEvent*,aEvent)->reason ==
|
||||
nsMouseEvent::eReal) ||
|
||||
NS_IS_KEY_EVENT(aEvent) ||
|
||||
NS_IS_IME_EVENT(aEvent)) {
|
||||
gLastUserEventTime = PR_IntervalToMicroseconds(PR_IntervalNow());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user