perf: Disable msd physics by default to improve scrolling, b=no-bug, c=no-component

This commit is contained in:
mr. m
2025-06-09 12:01:24 +02:00
parent af36549c7e
commit 967d0dd730
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
pref("general.smoothScroll.currentVelocityWeighting", "0.15");
pref("general.smoothScroll.stopDecelerationWeighting", "0.6");
pref("mousewheel.min_line_scroll_amount", 10);
pref("general.smoothScroll.mouseWheel.durationMinMS", 80);
pref("general.smoothScroll.msdPhysics.continuousMotionMaxDeltaMS", 12);
pref("general.smoothScroll.msdPhysics.motionBeginSpringConstant", 600);
pref("general.smoothScroll.msdPhysics.regularSpringConstant", 650);
pref("general.smoothScroll.msdPhysics.slowdownMinDeltaMS", 25);
pref("general.smoothScroll.msdPhysics.slowdownSpringConstant", 250);
pref("mousewheel.default.delta_multiplier_y", 200);

View File

@@ -36,5 +36,9 @@ pref('toolkit.legacyUserProfileCustomizations.stylesheets', true);
#include features.inc
#ifndef XP_MACOSX
#include smoothscroll.inc
#endif
#include performance.inc
#include pip.inc