From 7f81818f06e567491870bff64a0b936a0a285da9 Mon Sep 17 00:00:00 2001 From: Markus Stange Date: Tue, 4 Aug 2015 15:38:18 -0400 Subject: [PATCH] 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 --- dom/ipc/TabChild.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/ipc/TabChild.cpp b/dom/ipc/TabChild.cpp index 8a81ad04a650..c46a16068493 100644 --- a/dom/ipc/TabChild.cpp +++ b/dom/ipc/TabChild.cpp @@ -1870,7 +1870,7 @@ TabChild::RecvMouseWheelEvent(const WidgetWheelEvent& aEvent, const ScrollableLayerGuid& aGuid, const uint64_t& aInputBlockId) { - if (AsyncPanZoomEnabled()) { + if (aEvent.mFlags.mHandledByAPZ) { nsCOMPtr document(GetDocument()); APZCCallbackHelper::SendSetTargetAPZCNotification( mPuppetWidget, document, aEvent, aGuid, aInputBlockId);