Bug 1339831 - Alphabetically sort APZ prefs in mobile.js. r?botond draft
authorKartikaya Gupta <kgupta@mozilla.com>
Wed, 15 Feb 2017 10:50:34 -0500
changeset 484630 2161d0c6826a4747c39f931798876b4a93fa3a57
parent 484626 ec3ef9f77a52693e9732ca480df16017af0d9504
child 484631 df6a7392e7f15c130160e4de9771e2cc55e494e1
push id45527
push userkgupta@mozilla.com
push dateWed, 15 Feb 2017 15:52:07 +0000
reviewersbotond
bugs1339831
milestone54.0a1
Bug 1339831 - Alphabetically sort APZ prefs in mobile.js. r?botond MozReview-Commit-ID: 1lICBEAgYrn
mobile/android/app/mobile.js
--- a/mobile/android/app/mobile.js
+++ b/mobile/android/app/mobile.js
@@ -550,33 +550,34 @@ pref("editor.singleLine.pasteNewlines", 
 // threshold where a tap becomes a drag, in 1/240" reference pixels
 // The names of the preferences are to be in sync with EventStateManager.cpp
 pref("ui.dragThresholdX", 25);
 pref("ui.dragThresholdY", 25);
 
 pref("layers.acceleration.disabled", false);
 pref("layers.async-video.enabled", true);
 
-pref("apz.content_response_timeout", 600);
+// APZ physics settings (fling acceleration, fling curving and axis lock) have
+// been reviewed by UX
 pref("apz.allow_immediate_handoff", false);
-pref("apz.touch_start_tolerance", "0.06");
 pref("apz.axis_lock.breakout_angle", "0.7853982");    // PI / 4 (45 degrees)
-// APZ physics settings reviewed by UX
 pref("apz.axis_lock.mode", 1); // Use "strict" axis locking
+pref("apz.content_response_timeout", 600);
+pref("apz.fling_accel_interval_ms", 750);
 pref("apz.fling_curve_function_x1", "0.59");
 pref("apz.fling_curve_function_y1", "0.46");
 pref("apz.fling_curve_function_x2", "0.05");
 pref("apz.fling_curve_function_y2", "1.00");
 pref("apz.fling_curve_threshold_inches_per_ms", "0.01");
 // apz.fling_friction and apz.fling_stopped_threshold are currently ignored by Fennec.
 pref("apz.fling_friction", "0.004");
 pref("apz.fling_stopped_threshold", "0.0");
 pref("apz.max_velocity_inches_per_ms", "0.07");
-pref("apz.fling_accel_interval_ms", 750);
 pref("apz.overscroll.enabled", true);
+pref("apz.touch_start_tolerance", "0.06");
 
 pref("layers.progressive-paint", true);
 pref("layers.low-precision-buffer", true);
 pref("layers.low-precision-resolution", "0.25");
 pref("layers.low-precision-opacity", "1.0");
 // We want to limit layers for two reasons:
 // 1) We can't scroll smoothly if we have to many draw calls
 // 2) Pages that have too many layers consume too much memory and crash.