Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(660)

Unified Diff: chrome/browser/chromeos/touchpad.cc

Issue 242164: Tweak touchpad settings for better performance. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/touchpad.cc
===================================================================
--- chrome/browser/chromeos/touchpad.cc (revision 28124)
+++ chrome/browser/chromeos/touchpad.cc (working copy)
@@ -104,19 +104,17 @@
}
void Touchpad::SetSpeedFactor() {
- // To set speed factor, we use MinSpeed. Both MaxSpeed and AccelFactor are 0.
- // So MinSpeed will control the speed of the cursor with respect to the
- // touchpad movement and there will not be any acceleration.
- // MinSpeed is between 0.01 and 1.00. The preference is an integer between
- // 1 and 10, so we divide that by 10 for the value of MinSpeed.
+ // To set speed factor, we use MaxSpeed. MinSpeed is set to 0.2.
+ // MaxSpeed can go from 0.2 to 1.1. The preference is an integer between
+ // 1 and 10, so we divide that by 10 and add 0.1 for the value of MaxSpeed.
int value = speed_factor_.GetValue();
if (value < 1)
value = 1;
if (value > 10)
value = 10;
- // Convert from 1-10 to 0.1-1.0
- double d = static_cast<double>(value) / 10.0;
- SetSynclientParam("MinSpeed", d);
+ // Convert from 1-10 to 0.2-1.1
+ double d = static_cast<double>(value) / 10.0 + 0.1;
+ SetSynclientParam("MaxSpeed", d);
}
void Touchpad::SetSensitivity() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698