Bug 1348322 - Fix the initial values of gVelocityCurveFunction. draft
authorBoris Chiou <boris.chiou@gmail.com>
Fri, 17 Mar 2017 23:54:46 +0800
changeset 500745 45ee9b805fb2c73d812119e9380d64aa02d6ee6f
parent 500720 9a95ade0ec97a871f97c397261fc7297e897331f
child 549694 b40f9738b42de44965cf6799b915e7c5aec2ae74
push id49784
push userbmo:boris.chiou@gmail.com
push dateFri, 17 Mar 2017 15:55:22 +0000
bugs1348322
milestone55.0a1
Bug 1348322 - Fix the initial values of gVelocityCurveFunction. MozReview-Commit-ID: LDWCeRC4JBH
gfx/layers/apz/src/AsyncPanZoomController.cpp
--- a/gfx/layers/apz/src/AsyncPanZoomController.cpp
+++ b/gfx/layers/apz/src/AsyncPanZoomController.cpp
@@ -674,17 +674,17 @@ AsyncPanZoomController::InitializeGlobal
 
   gZoomAnimationFunction = new ComputedTimingFunction();
   gZoomAnimationFunction->Init(
     nsTimingFunction(NS_STYLE_TRANSITION_TIMING_FUNCTION_EASE));
   ClearOnShutdown(&gZoomAnimationFunction);
   gVelocityCurveFunction = new ComputedTimingFunction();
   gVelocityCurveFunction->Init(
     nsTimingFunction(gfxPrefs::APZCurveFunctionX1(),
-                     gfxPrefs::APZCurveFunctionY2(),
+                     gfxPrefs::APZCurveFunctionY1(),
                      gfxPrefs::APZCurveFunctionX2(),
                      gfxPrefs::APZCurveFunctionY2()));
   ClearOnShutdown(&gVelocityCurveFunction);
 
   uint64_t sysmem = PR_GetPhysicalMemorySize();
   uint64_t threshold = 1LL << 32; // 4 GB in bytes
   gIsHighMemSystem = sysmem >= threshold;
 }