mirror of
https://github.com/zen-browser/desktop.git
synced 2026-09-10 07:15:34 +00:00
gh-15026: Improve scrolling performance (gh-15306)
This commit is contained in:
@@ -4,4 +4,4 @@ This directory contains configuration files for Zen. They are divided by folder
|
||||
|
||||
- `firefox/`: Preferences to override Firefox defaults.
|
||||
- `zen/`: Preferences to configure Zen-specific features.
|
||||
- `privatefox/` & `fastfox/`: _Some_ of the preferences got extracted from [Betterfox](https://github.com/yokoffing/Betterfox).
|
||||
- `privatefox/`: _Some_ of the preferences got extracted from [Betterfox](https://github.com/yokoffing/Betterfox).
|
||||
|
||||
@@ -1,49 +0,0 @@
|
||||
# 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/.
|
||||
|
||||
# Smooth scrolling and mousewheel tuning preferences
|
||||
|
||||
- name: general.smoothScroll.msdPhysics.enabled
|
||||
condition: "!defined(XP_MACOSX)"
|
||||
value: true
|
||||
|
||||
- name: general.smoothScroll.currentVelocityWeighting
|
||||
condition: "!defined(XP_MACOSX)"
|
||||
value: "0.15"
|
||||
|
||||
- name: general.smoothScroll.stopDecelerationWeighting
|
||||
condition: "!defined(XP_MACOSX)"
|
||||
value: "0.6"
|
||||
|
||||
- name: mousewheel.min_line_scroll_amount
|
||||
condition: "!defined(XP_MACOSX)"
|
||||
value: 10
|
||||
|
||||
- name: general.smoothScroll.mouseWheel.durationMinMS
|
||||
condition: "!defined(XP_MACOSX)"
|
||||
value: 80
|
||||
|
||||
- name: general.smoothScroll.msdPhysics.continuousMotionMaxDeltaMS
|
||||
condition: "!defined(XP_MACOSX)"
|
||||
value: 12
|
||||
|
||||
- name: general.smoothScroll.msdPhysics.motionBeginSpringConstant
|
||||
condition: "!defined(XP_MACOSX)"
|
||||
value: 600
|
||||
|
||||
- name: general.smoothScroll.msdPhysics.regularSpringConstant
|
||||
condition: "!defined(XP_MACOSX)"
|
||||
value: 650
|
||||
|
||||
- name: general.smoothScroll.msdPhysics.slowdownMinDeltaMS
|
||||
condition: "!defined(XP_MACOSX)"
|
||||
value: 25
|
||||
|
||||
- name: general.smoothScroll.msdPhysics.slowdownSpringConstant
|
||||
condition: "!defined(XP_MACOSX)"
|
||||
value: 250
|
||||
|
||||
- name: mousewheel.default.delta_multiplier_y
|
||||
condition: "!defined(XP_MACOSX)"
|
||||
value: 200
|
||||
@@ -12,7 +12,7 @@ ChromeUtils.defineESModuleGetters(lazy, {
|
||||
|
||||
class nsZenUIMigration {
|
||||
PREF_NAME = "zen.ui.migration.version";
|
||||
MIGRATION_VERSION = 7;
|
||||
MIGRATION_VERSION = 8;
|
||||
|
||||
init(isNewProfile) {
|
||||
if (!isNewProfile) {
|
||||
@@ -164,6 +164,18 @@ class nsZenUIMigration {
|
||||
Services.prefs.setBoolPref("zen.widget.macos.window-vibrancy", false);
|
||||
}
|
||||
}
|
||||
|
||||
_migrateV8() {
|
||||
// A version mismatch in the downloadable gfx blocklist wrongly blocked
|
||||
// video overlays for every Windows user. The status pref persists in the
|
||||
// profile and short-circuits the blocklist evaluation, so clear it (and
|
||||
// its failure id) and restart, since gfx is already initialized by now.
|
||||
if (Services.prefs.prefHasUserValue("gfx.blacklist.video-overlay")) {
|
||||
Services.prefs.clearUserPref("gfx.blacklist.video-overlay");
|
||||
Services.prefs.clearUserPref("gfx.blacklist.video-overlay.failureid");
|
||||
this.shouldRestart = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export var gZenUIMigration = new nsZenUIMigration();
|
||||
|
||||
Reference in New Issue
Block a user