Bug 707859 PresShell shouldn't synthesize mousemove events during drag r=smaug

This commit is contained in:
Masayuki Nakano 2012-02-21 12:19:18 +09:00
parent 1013be2159
commit a7583a7dcc

View File

@ -5347,6 +5347,12 @@ static nsIView* FindViewContaining(nsIView* aView, nsPoint aPt)
void
PresShell::ProcessSynthMouseMoveEvent(bool aFromScroll)
{
// If drag session has started, we shouldn't synthesize mousemove event.
nsCOMPtr<nsIDragSession> dragSession = nsContentUtils::GetDragSession();
if (dragSession) {
return;
}
// allow new event to be posted while handling this one only if the
// source of the event is a scroll (to prevent infinite reflow loops)
if (aFromScroll) {