Bug 783747: B2G: Lower async panning friction r=gal
authorDoug Sherk <dsherk2@mozilla.com>
Tue, 21 Aug 2012 21:37:12 -0700
changeset 102995 59a7c786871107092f045cb30065177ffd4930ab
parent 102994 408707dae83791046256889add0b364c82f40727
child 102996 610e570628166960ae06b574a4d72e113ca2d244
push id13763
push userbugzilla@sherk.me
push dateWed, 22 Aug 2012 04:37:29 +0000
treeherdermozilla-inbound@610e57062816 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgal
bugs783747
milestone17.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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).