-
-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
// | ||
/****************************************************************************** | ||
* SmoothFox * | ||
* priority: smooth scrolling | ||
* version: 25 March 2020 * | ||
* url: https://github.com/hjstephens09/Better-Fox * | ||
******************************************************************************/ | ||
|
||
|
||
/****************************************************************************** | ||
* SECTION: EDGE-LIKE SMOOTH SCROLLING (USING MSDPHYSICS) * | ||
******************************************************************************/ | ||
|
||
// PREF: Edge-like smooth scrolliing (using msdPhysics) | ||
user_pref("apz.frame_delay.enabled", false); | ||
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); | ||
user_pref("toolkit.scrollbox.horizontalScrollDistance", 4); | ||
user_pref("toolkit.scrollbox.verticalScrollDistance", 5); | ||
user_pref("mousewheel.min_line_scroll_amount", 35); // adjust to preference, 20-40 | ||
|
||
|
||
/****************************************************************************** | ||
* SECTION: EDGE-LIKE SMOOTH SCROLLING (w/o MSDPHYSICS) * | ||
******************************************************************************/ | ||
|
||
// PREF: Edge-like smooth scrolliing (without msdPhysics) | ||
user_pref("apz.frame_delay.enabled", false); | ||
user_pref("general.smoothScroll.currentVelocityWeighting", 0.05); | ||
user_pref("general.smoothScroll.lines.durationMaxMS", 100); | ||
user_pref("general.smoothScroll.lines.durationMinMS", 450); | ||
user_pref("general.smoothScroll.mouseWheel.durationMaxMS", 200); | ||
user_pref("general.smoothScroll.mouseWheel.durationMinMS", 250); | ||
user_pref("general.smoothScroll.other.durationMaxMS", 400); | ||
user_pref("general.smoothScroll.other.durationMinMS", 400); | ||
user_pref("general.smoothScroll.pages.durationMaxMS", 300); | ||
user_pref("general.smoothScroll.pages.durationMinMS", 300); | ||
user_pref("general.smoothScroll.scrollbars.durationMaxMS", 200); | ||
user_pref("general.smoothScroll.scrollbars.durationMinMS", 450); | ||
user_pref("toolkit.scrollbox.horizontalScrollDistance", 4); | ||
user_pref("toolkit.scrollbox.verticalScrollDistance", 5); | ||
user_pref("mousewheel.min_line_scroll_amount", 35); // adjust to preference, 20-40 | ||
|
||
|
||
/****************************************************************************** | ||
* SECTION: MAC OS TRACKPAD * | ||
******************************************************************************/ | ||
|
||
// PREF: OS X / macOS Trackpad | ||
// May not need to adjust settings since scrolling is already pretty smooth in macOS. | ||
user_pref("apz.frame_delay.enabled", false); | ||
user_pref("general.smoothScroll.mouseWheel", true); | ||
user_pref("general.smoothScroll.mouseWheel.durationMaxMS", 600); | ||
user_pref("general.smoothScroll.mouseWheel.durationMinMS", 400); | ||
user_pref("general.smoothScroll.pixels.durationMaxMS", 400); | ||
user_pref("general.smoothScroll.pixels.durationMinMS", 100); | ||
user_pref("general.smoothScroll.stopDecelerationWeighting", 0.8); | ||
user_pref("mousewheel.acceleration.factor", 8); | ||
user_pref("mousewheel.acceleration.start", 2); | ||
user_pref("mousewheel.min_line_scroll_amount", 2); | ||
|
||
|
||
/****************************************************************************** | ||
* SECTION: GPU SPECIFIC * | ||
******************************************************************************/ | ||
|
||
// PREF: Improve performance by utilizing the GPU | ||
// https://cialu.net/how-to-turn-on-accelerated-compositing-layers-on-firefox/ | ||
user_pref("layers.acceleration.force-enabled", true); | ||
|
||
// PREF: GPU + Linux-only | ||
user_pref("layers.accelerate-all", true); |