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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user