Skip to content

Commit 967d0dd

Browse files
committed
perf: Disable msd physics by default to improve scrolling, b=no-bug, c=no-component
1 parent af36549 commit 967d0dd

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// This Source Code Form is subject to the terms of the Mozilla Public
2+
// License, v. 2.0. If a copy of the MPL was not distributed with this
3+
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
4+
5+
pref("general.smoothScroll.currentVelocityWeighting", "0.15");
6+
pref("general.smoothScroll.stopDecelerationWeighting", "0.6");
7+
pref("mousewheel.min_line_scroll_amount", 10);
8+
pref("general.smoothScroll.mouseWheel.durationMinMS", 80);
9+
pref("general.smoothScroll.msdPhysics.continuousMotionMaxDeltaMS", 12);
10+
pref("general.smoothScroll.msdPhysics.motionBeginSpringConstant", 600);
11+
pref("general.smoothScroll.msdPhysics.regularSpringConstant", 650);
12+
pref("general.smoothScroll.msdPhysics.slowdownMinDeltaMS", 25);
13+
pref("general.smoothScroll.msdPhysics.slowdownSpringConstant", 250);
14+
pref("mousewheel.default.delta_multiplier_y", 200);

src/browser/app/profile/zen-browser.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,9 @@ pref('toolkit.legacyUserProfileCustomizations.stylesheets', true);
3636

3737
#include features.inc
3838

39+
#ifndef XP_MACOSX
40+
#include smoothscroll.inc
41+
#endif
42+
3943
#include performance.inc
4044
#include pip.inc

0 commit comments

Comments
 (0)