From 5fac22ca2b52811e808ce995c7cee775f8834642 Mon Sep 17 00:00:00 2001 From: Kartikaya Gupta Date: Thu, 10 Dec 2015 10:22:04 -0500 Subject: [PATCH] Bug 1231504 - Copy physics prefs from b2g.js to Fennec. r=botond --HG-- extra : commitid : GMqlENuhtjI --- mobile/android/app/mobile.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/mobile/android/app/mobile.js b/mobile/android/app/mobile.js index f412c09814e0..27334d3523c6 100644 --- a/mobile/android/app/mobile.js +++ b/mobile/android/app/mobile.js @@ -556,11 +556,20 @@ pref("ui.dragThresholdY", 25); pref("layers.acceleration.disabled", false); pref("layers.offmainthreadcomposition.enabled", true); pref("layers.async-video.enabled", true); + #ifdef MOZ_ANDROID_APZ pref("layers.async-pan-zoom.enabled", true); -pref("apz.axis_lock.mode", 1); -pref("apz.fling_stop_on_tap_threshold", "0.08"); +// APZ physics settings, copied from B2G +pref("apz.axis_lock.mode", 2); // Use "sticky" axis locking +pref("apz.fling_curve_function_x1", "0.41"); +pref("apz.fling_curve_function_y1", "0.0"); +pref("apz.fling_curve_function_x2", "0.80"); +pref("apz.fling_curve_function_y2", "1.0"); +pref("apz.fling_curve_threshold_inches_per_ms", "0.01"); +pref("apz.fling_friction", "0.0019"); +pref("apz.max_velocity_inches_per_ms", "0.07"); #endif + pref("layers.progressive-paint", true); pref("layers.low-precision-buffer", true); pref("layers.low-precision-resolution", "0.25");