mirror of
https://github.com/yokoffing/Betterfox.git
synced 2026-06-12 07:30:47 +05:30
63 lines
4.1 KiB
JavaScript
63 lines
4.1 KiB
JavaScript
|
|
/****************************************************************************************
|
|
* Smoothfox *
|
|
* "Faber est suae quisque fortunae" *
|
|
* priority: better scrolling *
|
|
* version: 8 January 2024 *
|
|
* url: https://github.com/yokoffing/Betterfox *
|
|
***************************************************************************************/
|
|
|
|
// Note: msdPhysics was enabled by default for 122 Nightly.
|
|
// The options below have not been modified to account for this change.
|
|
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1846935
|
|
|
|
// Use only one option at a time!
|
|
// Reset prefs if you decide to use different option.
|
|
|
|
/****************************************************************************************
|
|
* OPTION: SHARPEN SCROLLING *
|
|
****************************************************************************************/
|
|
// credit: https://github.com/black7375/Firefox-UI-Fix
|
|
// only sharpen scrolling
|
|
user_pref("apz.overscroll.enabled", true); // DEFAULT NON-LINUX
|
|
user_pref("mousewheel.min_line_scroll_amount", 10); // 10-40; adjust this number to your liking; default=5
|
|
user_pref("general.smoothScroll.mouseWheel.durationMinMS", 80); // default=50
|
|
user_pref("general.smoothScroll.currentVelocityWeighting", "0.15"); // default=.25
|
|
user_pref("general.smoothScroll.stopDecelerationWeighting", "0.6"); // default=.4
|
|
|
|
/****************************************************************************************
|
|
* OPTION: INSTANT SCROLLING (SIMPLE ADJUSTMENT) *
|
|
****************************************************************************************/
|
|
// recommended for 60hz+ displays
|
|
user_pref("apz.overscroll.enabled", true); // DEFAULT NON-LINUX
|
|
user_pref("general.smoothScroll", true); // DEFAULT
|
|
user_pref("mousewheel.default.delta_multiplier_y", 275); // 250-400; adjust this number to your liking
|
|
|
|
/****************************************************************************************
|
|
* OPTION: SMOOTH SCROLLING *
|
|
****************************************************************************************/
|
|
// recommended for 90hz+ displays
|
|
user_pref("apz.overscroll.enabled", true); // DEFAULT NON-LINUX
|
|
user_pref("general.smoothScroll", true); // DEFAULT
|
|
user_pref("general.smoothScroll.msdPhysics.enabled", true);
|
|
user_pref("mousewheel.default.delta_multiplier_y", 300); // 250-400; adjust this number to your liking
|
|
|
|
/****************************************************************************************
|
|
* OPTION: NATURAL SMOOTH SCROLLING V3 [MODIFIED] *
|
|
****************************************************************************************/
|
|
// credit: https://github.com/AveYo/fox/blob/cf56d1194f4e5958169f9cf335cd175daa48d349/Natural%20Smooth%20Scrolling%20for%20user.js
|
|
// recommended for 120hz+ displays
|
|
// largely matches Chrome flags: Windows Scrolling Personality and Smooth Scrolling
|
|
user_pref("apz.overscroll.enabled", true); // DEFAULT NON-LINUX
|
|
user_pref("general.smoothScroll", true); // DEFAULT
|
|
user_pref("general.smoothScroll.msdPhysics.continuousMotionMaxDeltaMS", 12);
|
|
user_pref("general.smoothScroll.msdPhysics.enabled", true);
|
|
user_pref("general.smoothScroll.msdPhysics.motionBeginSpringConstant", 600);
|
|
user_pref("general.smoothScroll.msdPhysics.regularSpringConstant", 650);
|
|
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", 300); // 250-400; adjust this number to your liking
|