From 08397faf9345fee2f3a360a765ef2cc258e807e3 Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Wed, 25 Aug 2021 09:13:20 +0900 Subject: [PATCH] Add: Smooth, Sharpen scroll #188 --- user.js | 48 +++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 43 insertions(+), 5 deletions(-) diff --git a/user.js b/user.js index 45c1d752..1b7a3825 100644 --- a/user.js +++ b/user.js @@ -25,8 +25,46 @@ user_pref("browser.urlbar.suggest.calculator", true); // user_pref("browser.urlbar.unitConversion.enabled", true); // ** Scrolling Options ******************************************************** -// Pref Value Original -user_pref("mousewheel.min_line_scroll_amount", 6); // 5 -user_pref("general.smoothScroll.mouseWheel.durationMinMS", 80); // 50 -user_pref("general.smoothScroll.currentVelocityWeighting", "0.15"); // "0.25" -user_pref("general.smoothScroll.stopDecelerationWeighting", "0.6"); // "0.4" +// this preset will reset couple extra variables for consistency +// Pref Value Original +user_pref("apz.allow_zooming", true); /// true +user_pref("apz.force_disable_desktop_zooming_scrollbars", false); /// false +user_pref("apz.paint_skipping.enabled", true); /// true +user_pref("apz.windows.use_direct_manipulation", true); /// true +user_pref("dom.event.wheel-deltaMode-lines.always-disabled", true); /// false +user_pref("general.smoothScroll.currentVelocityWeighting", "0.15"); /// "0.25" +user_pref("general.smoothScroll.durationToIntervalRatio", 1000); /// 200 +user_pref("general.smoothScroll.lines.durationMaxMS", 100); /// 150 +user_pref("general.smoothScroll.lines.durationMinMS", 0); /// 150 +user_pref("general.smoothScroll.mouseWheel.durationMaxMS", 100); /// 200 +user_pref("general.smoothScroll.mouseWheel.durationMinMS", 0); /// 50 +user_pref("general.smoothScroll.mouseWheel.migrationPercent", 100); /// 100 +user_pref("general.smoothScroll.msdPhysics.continuousMotionMaxDeltaMS", 12); /// 120 +user_pref("general.smoothScroll.msdPhysics.enabled", true); /// false +user_pref("general.smoothScroll.msdPhysics.motionBeginSpringConstant", 200); /// 1250 +user_pref("general.smoothScroll.msdPhysics.regularSpringConstant", 200); /// 1000 +user_pref("general.smoothScroll.msdPhysics.slowdownMinDeltaMS", 10); /// 12 +user_pref("general.smoothScroll.msdPhysics.slowdownMinDeltaRatio", "1.20"); /// "1.3" +user_pref("general.smoothScroll.msdPhysics.slowdownSpringConstant", 1000); /// 2000 +user_pref("general.smoothScroll.other.durationMaxMS", 100); /// 150 +user_pref("general.smoothScroll.other.durationMinMS", 0); /// 150 +user_pref("general.smoothScroll.pages.durationMaxMS", 100); /// 150 +user_pref("general.smoothScroll.pages.durationMinMS", 0); /// 150 +user_pref("general.smoothScroll.pixels.durationMaxMS", 100); /// 150 +user_pref("general.smoothScroll.pixels.durationMinMS", 0); /// 150 +user_pref("general.smoothScroll.scrollbars.durationMaxMS", 100); /// 150 +user_pref("general.smoothScroll.scrollbars.durationMinMS", 0); /// 150 +user_pref("general.smoothScroll.stopDecelerationWeighting", "0.6"); /// "0.4" +user_pref("layers.async-pan-zoom.enabled", true); /// true +user_pref("layout.css.scroll-behavior.spring-constant", "250.0"); /// "250.0" +user_pref("mousewheel.acceleration.factor", 3); /// 10 +user_pref("mousewheel.acceleration.start", -1); /// -1 +user_pref("mousewheel.default.delta_multiplier_x", 100); /// 100 +user_pref("mousewheel.default.delta_multiplier_y", 100); /// 100 +user_pref("mousewheel.default.delta_multiplier_z", 100); /// 100 +user_pref("mousewheel.min_line_scroll_amount", 0); /// 5 +user_pref("mousewheel.system_scroll_override.enabled", true); /// true +user_pref("mousewheel.system_scroll_override_on_root_content.enabled", false); /// true +user_pref("mousewheel.transaction.timeout", 1500); /// 1500 +user_pref("toolkit.scrollbox.horizontalScrollDistance", 3); /// 5 +user_pref("toolkit.scrollbox.verticalScrollDistance", 3); /// 3