зеркало из https://github.com/mozilla/pjs.git
Bug 454595, improve editor drag and drop code, r+sr=neil
This commit is contained in:
Родитель
886fb4e4cc
Коммит
4501f81795
|
@ -572,13 +572,12 @@ nsTextEditorDragListener::DragOver(nsIDOMEvent* aDragEvent)
|
|||
PRBool canDrop = CanDrop(aDragEvent);
|
||||
dragSession->SetCanDrop(canDrop);
|
||||
|
||||
// We need to consume the event to prevent the browser's
|
||||
// default drag listeners from being fired. (Bug 199133)
|
||||
|
||||
aDragEvent->PreventDefault(); // consumed
|
||||
|
||||
if (canDrop)
|
||||
{
|
||||
// We need to consume the event to prevent the browser's
|
||||
// default drag listeners from being fired. (Bug 199133)
|
||||
aDragEvent->PreventDefault(); // consumed
|
||||
|
||||
if (mCaret && nsuiEvent)
|
||||
{
|
||||
PRInt32 offset = 0;
|
||||
|
|
Загрузка…
Ссылка в новой задаче