Bug 1193062 - Only send target confirmations for wheel events that were handled by APZ. r=kats

WidgetWheelEvents that are not handled by APZ include those used for zooming, and WHEEL_START / WHEEL_STOP.

--HG--
extra : commitid : DNoHIgXfFxy
extra : rebase_source : a847f31a1a45ecd30dc94600271fbb74fb82d279
extra : histedit_source : 5edbd6bfa4b9be7e8e34b8ce30583a0036e9f864
This commit is contained in:
Markus Stange 2015-08-04 15:38:18 -04:00
parent e8216d51f6
commit 7f81818f06

View File

@ -1870,7 +1870,7 @@ TabChild::RecvMouseWheelEvent(const WidgetWheelEvent& aEvent,
const ScrollableLayerGuid& aGuid,
const uint64_t& aInputBlockId)
{
if (AsyncPanZoomEnabled()) {
if (aEvent.mFlags.mHandledByAPZ) {
nsCOMPtr<nsIDocument> document(GetDocument());
APZCCallbackHelper::SendSetTargetAPZCNotification(
mPuppetWidget, document, aEvent, aGuid, aInputBlockId);