Bug 1118784 - Fix typo causing wheel inputs to not get transformed to Gecko coordinate space properly. r=dvander
authorKartikaya Gupta <kgupta@mozilla.com>
Wed, 07 Jan 2015 13:34:23 -0500
changeset 235506 f6a498e8283102617e2f45d975a1882fe625a2aa
parent 235505 93640018725d4cf803b68f7230f7afe13d2377fb
child 235507 ce11eadad118cd036d1a6e62c38d9d2397b74df9
push id366
push usercmanchester@mozilla.com
push dateThu, 08 Jan 2015 16:40:24 +0000
reviewersdvander
bugs1118784
milestone37.0a1
Bug 1118784 - Fix typo causing wheel inputs to not get transformed to Gecko coordinate space properly. r=dvander
gfx/layers/apz/src/APZCTreeManager.cpp
--- a/gfx/layers/apz/src/APZCTreeManager.cpp
+++ b/gfx/layers/apz/src/APZCTreeManager.cpp
@@ -623,17 +623,17 @@ APZCTreeManager::ReceiveInputEvent(Input
           apzc,
           /* aTargetConfirmed = */ hitResult == ApzcHitRegion,
           wheelInput, aOutInputBlockId);
 
         // Update the out-parameters so they are what the caller expects.
         apzc->GetGuid(aOutTargetGuid);
         Matrix4x4 transformToGecko = transformToApzc * GetApzcToGeckoTransform(apzc);
         wheelInput.mOrigin =
-          TransformTo<ScreenPixel>(transformToGecko, wheelInput.mLocalOrigin);
+          TransformTo<ScreenPixel>(transformToGecko, wheelInput.mOrigin);
       }
       break;
     } case PANGESTURE_INPUT: {
       PanGestureInput& panInput = aEvent.AsPanGestureInput();
       nsRefPtr<AsyncPanZoomController> apzc = GetTargetAPZC(panInput.mPanStartPoint,
                                                             &hitResult);
       if (apzc) {
         MOZ_ASSERT(hitResult == ApzcHitRegion || hitResult == ApzcContentRegion);