From 0f1d97ed61138dd147969acefe1a09fbe8a7a98f Mon Sep 17 00:00:00 2001 From: Benoit Girard Date: Tue, 3 Nov 2015 14:21:35 -0500 Subject: [PATCH] Bug 1220853 - Notify wheel transaction of mouse move when using async dragging. r=kats --HG-- extra : commitid : Aw8xxcgcHKF --- gfx/layers/apz/src/APZCTreeManager.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gfx/layers/apz/src/APZCTreeManager.cpp b/gfx/layers/apz/src/APZCTreeManager.cpp index b99796f26751..333f946f0ead 100644 --- a/gfx/layers/apz/src/APZCTreeManager.cpp +++ b/gfx/layers/apz/src/APZCTreeManager.cpp @@ -1051,6 +1051,11 @@ APZCTreeManager::ProcessMouseEvent(WidgetMouseEventBase& aEvent, ScrollableLayerGuid* aOutTargetGuid, uint64_t* aOutInputBlockId) { + MOZ_ASSERT(NS_IsMainThread()); + + // Note, we call this before having transformed the reference point. + UpdateWheelTransaction(aEvent); + MouseInput input(aEvent); input.mOrigin = ScreenPoint(aEvent.refPoint.x, aEvent.refPoint.y);