Attempt to fix pageload regression/oscillation from bug 20022. r+sr=bryner

This commit is contained in:
dbaron%dbaron.org 2004-06-22 22:30:18 +00:00
parent e5632337c1
commit cefa77d7c2

View File

@ -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());
}