fixed the crash on bug 1588 (rsac.org). There is still a scrolling problem

git-svn-id: svn://10.0.0.236/trunk@15306 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
karnaze%netscape.com
1998-11-25 18:11:26 +00:00
parent f8cfaf6d4d
commit e0d2e68693
2 changed files with 26 additions and 18 deletions

View File

@@ -457,16 +457,20 @@ NS_METHOD nsHTMLFramesetFrame::HandleEvent(nsIPresContext& aPresContext,
nsGUIEvent* aEvent,
nsEventStatus& aEventStatus)
{
// the nsFramesetBorderFrame has captured NS_MOUSE_DOWN
switch (aEvent->message) {
case NS_MOUSE_MOVE:
MouseDrag(aPresContext, aEvent);
break;
case NS_MOUSE_LEFT_BUTTON_UP:
EndMouseDrag();
break;
if (mDragger) {
// the nsFramesetBorderFrame has captured NS_MOUSE_DOWN
switch (aEvent->message) {
case NS_MOUSE_MOVE:
MouseDrag(aPresContext, aEvent);
break;
case NS_MOUSE_LEFT_BUTTON_UP:
EndMouseDrag();
break;
}
aEventStatus = nsEventStatus_eConsumeNoDefault;
} else {
aEventStatus = nsEventStatus_eIgnore;
}
aEventStatus = nsEventStatus_eConsumeNoDefault;
return NS_OK;
}