Bug 698936 - dragleave is fired on previous drop target after successful drop; r=enndeakin

This commit is contained in:
Tim Taubert 2011-11-08 10:55:47 +01:00
Родитель 1fe3dee652
Коммит a2b8d791ce
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -2096,6 +2096,7 @@ nsEventStateManager::GenerateDragGesture(nsPresContext* aPresContext,
if (!targetContent)
return;
sLastDragOverFrame = nsnull;
nsCOMPtr<nsIWidget> widget = mCurrentTarget->GetNearestWidget();
// get the widget from the target frame
@ -3422,6 +3423,7 @@ nsEventStateManager::PostHandleEvent(nsPresContext* aPresContext,
targetContent, &status);
}
}
sLastDragOverFrame = nsnull;
ClearGlobalActiveContent(this);
break;
}