mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 19:37:15 +00:00
Bug 707859 PresShell shouldn't synthesize mousemove events during drag r=smaug
This commit is contained in:
parent
1013be2159
commit
a7583a7dcc
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user