Bug 1199468 - Tighten the smooth scroll animation prefs. r?avih draft
authorMarkus Stange <mstange@themasta.com>
Wed, 16 Dec 2015 20:23:28 +0100
changeset 318184 1d38f7059155bcbff4a4611b27eff1ba996ab8a6
parent 318183 73362ea7266c5a88a65b3f481aac0781af003138
child 318185 35b1c9ce3cef5f01de9b0a723e5d31967dce7481
push id8848
push usermstange@themasta.com
push dateThu, 31 Dec 2015 15:26:17 +0000
reviewersavih
bugs1199468
milestone46.0a1
Bug 1199468 - Tighten the smooth scroll animation prefs. r?avih
modules/libpref/init/all.js
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -2098,17 +2098,17 @@ pref("mousewheel.min_line_scroll_amount"
 // Some triggers:
 // mouseWheel: Discrete mouse wheel events, Synaptics touchpads on windows (generate wheel events)
 // Lines:  Up/Down/Left/Right KB arrows
 // Pages:  Page up/down, Space
 // Scrollbars: Clicking scrollbars arrows, clicking scrollbars tracks
 // Note: Currently OS X trackpad and magic mouse don't use our smooth scrolling
 // Note: These are relevant only when "general.smoothScroll" is enabled
 pref("general.smoothScroll.mouseWheel.durationMinMS", 200);
-pref("general.smoothScroll.mouseWheel.durationMaxMS", 400);
+pref("general.smoothScroll.mouseWheel.durationMaxMS", 250);
 pref("general.smoothScroll.pixels.durationMinMS", 150);
 pref("general.smoothScroll.pixels.durationMaxMS", 150);
 pref("general.smoothScroll.lines.durationMinMS", 150);
 pref("general.smoothScroll.lines.durationMaxMS", 150);
 pref("general.smoothScroll.pages.durationMinMS", 150);
 pref("general.smoothScroll.pages.durationMaxMS", 150);
 pref("general.smoothScroll.scrollbars.durationMinMS", 150);
 pref("general.smoothScroll.scrollbars.durationMaxMS", 150);
@@ -2123,18 +2123,18 @@ pref("general.smoothScroll.scrollbars", 
 pref("general.smoothScroll.other", true);
 // To connect consecutive scroll events into a continuous flow, the animation's duration
 // should be longer than scroll events intervals (or else the scroll will stop
 // before the next event arrives - we're guessing next interval by averaging recent
 // intervals).
 // This defines how longer is the duration compared to events interval (percentage)
 pref("general.smoothScroll.durationToIntervalRatio", 200);
 // These two prefs determine the timing function.
-pref("general.smoothScroll.currentVelocityWeighting", "0.25");
-pref("general.smoothScroll.stopDecelerationWeighting", "0.4");
+pref("general.smoothScroll.currentVelocityWeighting", "0");
+pref("general.smoothScroll.stopDecelerationWeighting", "0.82");
 
 pref("profile.confirm_automigration",true);
 // profile.migration_behavior determines how the profiles root is set
 // 0 - use NS_APP_USER_PROFILES_ROOT_DIR
 // 1 - create one based on the NS4.x profile root
 // 2 - use, if not empty, profile.migration_directory otherwise same as 0
 pref("profile.migration_behavior",0);
 pref("profile.migration_directory", "");