Bug 783747: B2G: Lower async panning friction r=gal
authorDoug Sherk <dsherk2@mozilla.com>
Tue, 21 Aug 2012 21:37:12 -0700
changeset 105050 59a7c786871107092f045cb30065177ffd4930ab
parent 105049 408707dae83791046256889add0b364c82f40727
child 105051 610e570628166960ae06b574a4d72e113ca2d244
push id55
push usershu@rfrn.org
push dateThu, 30 Aug 2012 01:33:09 +0000
reviewersgal
bugs783747
milestone17.0a1
Bug 783747: B2G: Lower async panning friction r=gal
gfx/layers/ipc/Axis.cpp
--- a/gfx/layers/ipc/Axis.cpp
+++ b/gfx/layers/ipc/Axis.cpp
@@ -18,23 +18,23 @@ static const float EPSILON = 0.0001f;
  * or we get a touch point very far away from the previous position for some
  * reason.
  */
 static const float MAX_EVENT_ACCELERATION = 0.5f;
 
 /**
  * Amount of friction applied during flings.
  */
-static const float FLING_FRICTION = 0.013f;
+static const float FLING_FRICTION = 0.007f;
 
 /**
  * Threshold for velocity beneath which we turn off any acceleration we had
  * during repeated flings.
  */
-static const float VELOCITY_THRESHOLD = 0.1f;
+static const float VELOCITY_THRESHOLD = 0.14f;
 
 /**
  * Amount of acceleration we multiply in each time the user flings in one
  * direction. Every time they let go of the screen, we increase the acceleration
  * by this amount raised to the power of the amount of times they have let go,
  * times two (to make the curve steeper).  This stops if the user lets go and we
  * slow down enough, or if they put their finger down without moving it for a
  * moment (or in the opposite direction).