Commit 1c14973d authored by flackr@chromium.org's avatar flackr@chromium.org

Require at least a 25 degree rise angle before changing screen rotation.

BUG=377508
TEST=Manually verified this updated angle matches expectations.

Review URL: https://codereview.chromium.org/293383004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272897 0039d316-1c4b-4281-b951-d872f2087c98
parent 593e431f
......@@ -60,8 +60,10 @@ const float kDisplayRotationStickyAngleDegrees = 60.0f;
// The minimum acceleration in a direction required to trigger screen rotation.
// This prevents rapid toggling of rotation when the device is near flat and
// there is very little screen aligned force on it.
const float kMinimumAccelerationScreenRotation = 0.3f;
// there is very little screen aligned force on it. The value is effectively the
// sine of the rise angle required, with the current value requiring at least a
// 25 degree rise.
const float kMinimumAccelerationScreenRotation = 0.42f;
const float kRadiansToDegrees = 180.0f / 3.14159265f;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment