Fix for bug 199133: mfc embed drag&drop doesn't work within same editor

Make DragOver() consume the drag event so that the default browser drag listener that is present during embedding, isn't triggered.

r=brade@netscape.com sr=dbaron@dbaron.org
This commit is contained in:
kin%netscape.com 2003-03-25 15:38:17 +00:00
Родитель 8bfa453ecb
Коммит e330f0c63e
1 изменённых файлов: 5 добавлений и 4 удалений

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

@ -675,10 +675,11 @@ nsTextEditorDragListener::DragOver(nsIDOMEvent* aDragEvent)
PRBool canDrop = CanDrop(aDragEvent);
dragSession->SetCanDrop(canDrop);
if (!canDrop) {
aDragEvent->PreventDefault(); // consumed
return NS_OK;
}
// We need to consume the event to prevent the browser's
// default drag listeners from being fired. (Bug 199133)
aDragEvent->PreventDefault(); // consumed
if (canDrop)
{