зеркало из https://github.com/mozilla/pjs.git
when we see that the mouseDown event was cancelled, stop tracking drags. This allows mousedown/move/up events to be processed by webpages w/out us interfering. r=joki, bug 43258.
This commit is contained in:
Родитель
beb9eae6de
Коммит
6333de29c5
|
@ -887,6 +887,11 @@ nsEventStateManager::PostHandleEvent(nsIPresContext* aPresContext,
|
||||||
|
|
||||||
SetContentState(newFocus, NS_EVENT_STATE_ACTIVE);
|
SetContentState(newFocus, NS_EVENT_STATE_ACTIVE);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
// if we're here, the event handler returned false, so stop
|
||||||
|
// any of our own processing of a drag. Workaround for bug 43258.
|
||||||
|
StopTrackingDragGesture();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case NS_MOUSE_LEFT_BUTTON_UP:
|
case NS_MOUSE_LEFT_BUTTON_UP:
|
||||||
|
|
|
@ -887,6 +887,11 @@ nsEventStateManager::PostHandleEvent(nsIPresContext* aPresContext,
|
||||||
|
|
||||||
SetContentState(newFocus, NS_EVENT_STATE_ACTIVE);
|
SetContentState(newFocus, NS_EVENT_STATE_ACTIVE);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
// if we're here, the event handler returned false, so stop
|
||||||
|
// any of our own processing of a drag. Workaround for bug 43258.
|
||||||
|
StopTrackingDragGesture();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case NS_MOUSE_LEFT_BUTTON_UP:
|
case NS_MOUSE_LEFT_BUTTON_UP:
|
||||||
|
|
Загрузка…
Ссылка в новой задаче