зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
8bfa453ecb
Коммит
e330f0c63e
|
@ -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)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче