mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
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:
parent
e8216d51f6
commit
7f81818f06
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user