Bug 707859 part.2 Forget PresShell::mSynthMouseMoveEvent when drag session prevents to dispatch it r=smaug

This commit is contained in:
Masayuki Nakano 2012-02-24 13:41:33 +09:00
parent 4f3e9ef6dc
commit 407199e3a7

View File

@ -5350,6 +5350,7 @@ PresShell::ProcessSynthMouseMoveEvent(bool aFromScroll)
// If drag session has started, we shouldn't synthesize mousemove event.
nsCOMPtr<nsIDragSession> dragSession = nsContentUtils::GetDragSession();
if (dragSession) {
mSynthMouseMoveEvent.Forget();
return;
}