Stop dual event flow through both frames kids and view kids. Now flows through views.

This commit is contained in:
joki%netscape.com 1998-11-10 00:35:30 +00:00
Родитель 09326ed22a
Коммит 561847577e
1 изменённых файлов: 10 добавлений и 6 удалений

Просмотреть файл

@ -734,23 +734,27 @@ nsBodyFrame::HandleEvent(nsIPresContext& aPresContext,
// our first-child first (children after the first-child are either
// absolute positioned frames or are floating frames, both of which
// are on top (in the z order) of the first-child).
PRInt32 n = mChildCount;
/*XXX Commenting event dispatch to BodyFrame's absolutely positioned
* children. They already get the event through the view hierarchy.
*/
/*PRInt32 n = mChildCount;*/
nsIFrame* kid = mFirstChild;
kid->GetNextSibling(kid);
/*kid->GetNextSibling(kid);
while (--n >= 0) {
if (nsnull == kid) {
kid = mFirstChild;
}
}*/
nsRect kidRect;
kid->GetRect(kidRect);
if (kidRect.Contains(aEvent->point)) {
aEvent->point.MoveBy(-kidRect.x, -kidRect.y);
kid->HandleEvent(aPresContext, aEvent, aEventStatus);
aEvent->point.MoveBy(kidRect.x, kidRect.y);
break;
/*break;*/
}
kid->GetNextSibling(kid);
}
/*kid->GetNextSibling(kid);
}*/
// XXX Hack mouse enter/exit and cursor code. THIS DOESN'T BELONG HERE!
#if 1