From 791a3eb118f3cbb99726a34c908c9599f598b806 Mon Sep 17 00:00:00 2001 From: yokoffing <11689349+yokoffing@users.noreply.github.com> Date: Mon, 5 Sep 2022 13:27:46 -0400 Subject: [PATCH] SmoothFox.js Sept 2022 (#67) Added new options --- SmoothFox.js | 68 ++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 50 insertions(+), 18 deletions(-) diff --git a/SmoothFox.js b/SmoothFox.js index 61336e0..d58435c 100644 --- a/SmoothFox.js +++ b/SmoothFox.js @@ -11,30 +11,62 @@ * SmoothFox * * "Faber est suae quisque fortunae" * * priority: better scrolling * - * version: August 2022 * + * version: September 2022 * * url: https://github.com/yokoffing/Better-Fox * ***************************************************************************/ /**************************************************************************** - * OPTION 1: SMOOTH SCROLLING (SIMPLE ADJUSTMENT) * + * OPTION 1: INSTANT SCROLLING (SIMPLE ADJUSTMENT) * ****************************************************************************/ -user_pref("general.smoothScroll", true); -user_pref("mousewheel.min_line_scroll_amount", 30); +user_pref("general.smoothScroll", true); // DEFAULT +user_pref("mousewheel.default.delta_multiplier_y", 300); // 250-500 /**************************************************************************** - * OPTION 2: SMOOTH SCROLLING (OVERALL IMPROVEMENT OF DEFAULTS) * + * OPTION 2: SMOOTH SCROLLING * ****************************************************************************/ -user_pref("general.smoothScroll", true); -user_pref("general.smoothScroll.mouseWheel.durationMaxMS", 150); -user_pref("general.smoothScroll.mouseWheel.durationMinMS", 125); +user_pref("general.smoothScroll", true); // DEFAULT +user_pref("mousewheel.default.delta_multiplier_y", 250); +user_pref("general.smoothScroll.msdPhysics.enabled", true); + +/**************************************************************************** + * OPTION 3: EDGE-LIKE SMOOTH SCROLLING * +****************************************************************************/ +user_pref("general.smoothScroll", true); // DEFAULT +user_pref("mousewheel.default.delta_multiplier_y", 250); +user_pref("general.smoothScroll.msdPhysics.enabled", true); +user_pref("general.smoothScroll.msdPhysics.continuousMotionMaxDeltaMS", 250); +user_pref("general.smoothScroll.msdPhysics.motionBeginSpringConstant", 400); +user_pref("general.smoothScroll.msdPhysics.regularSpringConstant", 400); +user_pref("general.smoothScroll.msdPhysics.slowdownMinDeltaMS", 120); +user_pref("general.smoothScroll.msdPhysics.slowdownMinDeltaRatio", 0.4); +user_pref("general.smoothScroll.msdPhysics.slowdownSpringConstant", 5000); + +/**************************************************************************** + * OPTION 4: NATURAL SMOOTH SCROLLING V4 * +****************************************************************************/ +// from https://github.com/AveYo/fox/blob/main/Natural%20Smooth%20Scrolling%20for%20user.js +user_pref("general.smoothScroll.msdPhysics.continuousMotionMaxDeltaMS", 12); +user_pref("general.smoothScroll.msdPhysics.enabled", true); +user_pref("general.smoothScroll.msdPhysics.motionBeginSpringConstant", 200); +user_pref("general.smoothScroll.msdPhysics.regularSpringConstant", 250); +user_pref("general.smoothScroll.msdPhysics.slowdownMinDeltaMS", 25); +user_pref("general.smoothScroll.msdPhysics.slowdownMinDeltaRatio", 2.0); +user_pref("general.smoothScroll.msdPhysics.slowdownSpringConstant", 250); +user_pref("general.smoothScroll.currentVelocityWeighting", 1.0); +user_pref("general.smoothScroll.stopDecelerationWeighting", 1.0); + +/**************************************************************************** + * OPTION 5: NATURAL SMOOTH SCROLLING [MODIFIED] * +****************************************************************************/ +// Largely matches Chrome flags: Windows Scrolling Personality and Smooth Scrolling +user_pref("general.smoothScroll.msdPhysics.continuousMotionMaxDeltaMS", 12); +user_pref("general.smoothScroll.msdPhysics.enabled", true); +user_pref("general.smoothScroll.msdPhysics.motionBeginSpringConstant", 600); // 200 +user_pref("general.smoothScroll.msdPhysics.regularSpringConstant", 650); // 250 +user_pref("general.smoothScroll.msdPhysics.slowdownMinDeltaMS", 25); +user_pref("general.smoothScroll.msdPhysics.slowdownMinDeltaRatio", 2.0); +user_pref("general.smoothScroll.msdPhysics.slowdownSpringConstant", 250); +user_pref("general.smoothScroll.currentVelocityWeighting", 1.0); +user_pref("general.smoothScroll.stopDecelerationWeighting", 1.0); +user_pref("mousewheel.default.delta_multiplier_y", 280); -/****************************************************************************** - * OPTION 3: EDGE-LIKE SMOOTH SCROLLING * -******************************************************************************/ -user_pref("general.smoothScroll", true); -user_pref("general.smoothScroll.currentVelocityWeighting", "0.1"); -user_pref("general.smoothScroll.mouseWheel.durationMaxMS", 250); -user_pref("general.smoothScroll.mouseWheel.durationMinMS", 125); -user_pref("general.smoothScroll.stopDecelerationWeighting", "0.7"); -user_pref("mousewheel.min_line_scroll_amount", 25); -user_pref("apz.overscroll.enabled", true); /*elastic overscroll*/