
Firefox permet des réglages fins pour le contrôle de la souris lors de son scroll. C’est le seul navigateur qui permette ça, alors autant s’en servir. C’est rapide et indolore. Alors voici comment régler rapidement le comportement de la souris.
Deux méthodes pour se faire, une version texte et une version graphique.
Pour la méthode texte, on se rend dans
about:profiles
(taper cette commande dans la barre d’url du navigateur de Mozilla et choisir « Répertoire racine » pour votre profil).
Firefox sous Windows
Créer le fichier user.js et y coller les lignes suivantes :
// SmoothScroll personnalisations user_pref("general.smoothScroll.currentVelocityWeighting", 1.0); 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); user_pref("general.smoothScroll.msdPhysics.slowdownSpringConstant", 250); user_pref("general.smoothScroll.scrollbars.durationMaxMS", 500); user_pref("general.smoothScroll.stopDecelerationWeighting", 1); user_pref("mousewheel.default.delta_multiplier_y", 157);
Et voilà. Nul besoin de fermer le butineur Firefox (mais ouvrir un nouvel onglet), vous pouvez de suite tester ces nouvelles entrées sur une page avec un long scrolling pour vous assurer que le tout est fluide et répond bien à vos préférences. Sinon, adapter les valeurs. Et bien sûr, si vous avez plusieurs utilisateurs sur votre ordinateur, il faudra reconduire cette petite opération qui se réalise très rapidement finalement pour un gain de confort évident. Sinon, il vous restera le surf avec deux mains, la première sur la souris, la seconde sur les touches « page up » et « page down » de votre clavier.
Firefox sous Linux (testé sous Kubuntu)
Sous Linux, le scroll de Firefox reste assez « mou » même après des tweaks. Les préférences mises juste au dessus vont déjà dans le bon sens, mais il y a d’autres clés souvent oubliées qui changent vraiment la fluidité.
Profils user.js
optimisés Linux :
// SmoothScroll - NERVEUX (Linux) // Lissage + physique user_pref("general.smoothScroll", true); user_pref("general.smoothScroll.msdPhysics.enabled", true); // Physique très ferme user_pref("general.smoothScroll.currentVelocityWeighting", 1.0); user_pref("general.smoothScroll.stopDecelerationWeighting", 1.0); user_pref("general.smoothScroll.msdPhysics.motionBeginSpringConstant", 1100); user_pref("general.smoothScroll.msdPhysics.regularSpringConstant", 1100); user_pref("general.smoothScroll.msdPhysics.slowdownMinDeltaMS", 8); user_pref("general.smoothScroll.msdPhysics.slowdownMinDeltaRatio", 2); user_pref("general.smoothScroll.msdPhysics.slowdownSpringConstant", 250); user_pref("general.smoothScroll.msdPhysics.continuousMotionMaxDeltaMS", 12); // Durées mini = punch user_pref("general.smoothScroll.scrollbars.durationMinMS", 80); user_pref("general.smoothScroll.scrollbars.durationMaxMS", 180); user_pref("general.smoothScroll.pages.durationMinMS", 80); user_pref("general.smoothScroll.pages.durationMaxMS", 180); user_pref("general.smoothScroll.other.durationMinMS", 80); user_pref("general.smoothScroll.other.durationMaxMS", 180); // Vitesse roue élevée user_pref("mousewheel.min_line_scroll_amount", 45); user_pref("mousewheel.default.delta_multiplier_y", 300);
Micro-ajustements
- Wayland/GTK : si vous êtes sous Wayland, ajouter :
user_pref("widget.wayland.vsync.enabled", true);
- Touchpad précis (défilement déjà “fin”) : baisse
mousewheel.default.delta_multiplier_y
de ~20–40 sur le profil choisi. - Souris : garde les valeurs proposées (Δ plus grand = plus rapide).
- Trop “flottant” ? augmente
motionBeginSpringConstant
etregularSpringConstant
par pas de +100. - Trop “sec” ? réduis-les par pas de –100 OU augmente
durationMaxMS
de +30/50. - Conflits : extensions de scroll, thèmes ou
about:config
résiduels peuvent interférer (tester sur un profil vierge).
Méthode facile avec une interface graphique
Yet Another Smooth Scrolling WE est l’extension qui va remplacer avantageusement toute configuration manuelle. Installez-la et appliquez à peu de chose près les réglages que j’ai définis pour avoir un scroll fluide et permettant l’accélération de la molette. Ouvrez un nouvel onglet pour apprécier les changements effectués entre deux tâtonnements.
Addendum si on veut faire les réglages sur tous les utilisateurs de l’O/S
Pour Windows
Voici la variante AutoConfig (mozilla.cfg) prête à déposer.
Fichiers à créer
1) defaults/pref/autoconfig.js
(un commentaire est obligatoire en 1ᵉ ligne)
// required comment pref("general.config.filename", "mozilla.cfg"); pref("general.config.obscure_value", 0); // 0 = fichier en clair, non obfusqué
2) mozilla.cfg
(un commentaire est obligatoire en 1ᵉ ligne)
Ci-dessous, mix : quelques prefs verrouillées (lockPref) et le reste modifiables (pref). On peut tout passer en lockPref si on veut forcer 100%.
// required comment // Verrouillées (exemples : garder le comportement clé) lockPref("general.smoothScroll.msdPhysics.enabled", true); lockPref("mousewheel.default.delta_multiplier_y", 157); // Modifiables par l’utilisateur (valeurs par défaut appliquées) pref("general.smoothScroll.currentVelocityWeighting", 1.0); 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.slowdownMinDeltaRatio", 2); pref("general.smoothScroll.msdPhysics.slowdownSpringConstant", 250); pref("general.smoothScroll.scrollbars.durationMaxMS", 500); pref("general.smoothScroll.stopDecelerationWeighting", 1);
Emplacements
WindowsC:\Program Files\Mozilla Firefox\defaults\pref\autoconfig.js
C:\Program Files\Mozilla Firefox\mozilla.cfg
Vérifications rapides
- Redémarrer Firefox.
- Aller sur
about:policies
→ onglet Active : l’AutoConfig doit être détecté. - Sur about:config, tester une pref :
Celles en lockPref sont grisées/non modifiables ; Celles en pref restent éditables.
Pour Linux
Voici une variante AutoConfig (Linux) - profil NERVEUX prête à déposer.
Elle verrouille toutes les clés (modifiables seulement en changeant le fichier).
Fichiers à créer
1) defaults/pref/autoconfig.js
(un commentaire est obligatoire en 1ʳᵉ ligne)
// required comment pref("general.config.filename", "mozilla.cfg"); pref("general.config.obscure_value", 0); // 0 = mozilla.cfg en clair
2) mozilla.cfg
(un commentaire est obligatoire en 1ʳᵉ ligne)
// required comment // SmoothScroll - NERVEUX (Linux) - tout verrouillé lockPref("general.smoothScroll", true); lockPref("general.smoothScroll.msdPhysics.enabled", true); lockPref("general.smoothScroll.currentVelocityWeighting", 1.0); lockPref("general.smoothScroll.stopDecelerationWeighting", 1.0); lockPref("general.smoothScroll.msdPhysics.motionBeginSpringConstant", 1100); lockPref("general.smoothScroll.msdPhysics.regularSpringConstant", 1100); lockPref("general.smoothScroll.msdPhysics.slowdownMinDeltaMS", 8); lockPref("general.smoothScroll.msdPhysics.slowdownMinDeltaRatio", 2); lockPref("general.smoothScroll.msdPhysics.slowdownSpringConstant", 250); lockPref("general.smoothScroll.msdPhysics.continuousMotionMaxDeltaMS", 12); lockPref("general.smoothScroll.scrollbars.durationMinMS", 80); lockPref("general.smoothScroll.scrollbars.durationMaxMS", 180); lockPref("general.smoothScroll.pages.durationMinMS", 80); lockPref("general.smoothScroll.pages.durationMaxMS", 180); lockPref("general.smoothScroll.other.durationMinMS", 80); lockPref("general.smoothScroll.other.durationMaxMS", 180); lockPref("mousewheel.min_line_scroll_amount", 45); lockPref("mousewheel.default.delta_multiplier_y", 300); // (Optionnel Wayland) décommente si tu es sous Wayland pour réduire la latence // pref("widget.wayland.vsync.enabled", true);
Emplacements (Ubuntu/Debian & binaire officiel)
- Paquet distro (Ubuntu/Debian) :
sudo cp mozilla.cfg /usr/lib/firefox/ sudo mkdir -p /usr/lib/firefox/defaults/pref/ && sudo cp autoconfig.js /usr/lib/firefox/defaults/pref/
- Archive officielle Mozilla (dossier où se trouve firefox) :
./firefox/mozilla.cfg
./firefox/defaults/pref/autoconfig.js
Les versions Snap/Flatpak montent l’appli en lecture seule : préférer alors un policies.json système, ou installer la version tarball/distro pour AutoConfig.
Vérification rapide
- Redémarrer Firefox.
- about:config → chercher une clé (ex. mousewheel.default.delta_multiplier_y) : elle doit être grisée (verrouillée).
- Tester le scroll : vous devez sentir un rendu très réactif et sec.
Version 100% libre (pas de lock) d’une version policies.json si vous êtes en paquet snap
Toutes les prefs appliquées au démarrage, mais modifiables dans about:config
{ "policies": { "Preferences": { "general.smoothScroll": { "Value": true }, "general.smoothScroll.msdPhysics.enabled": { "Value": true }, "general.smoothScroll.currentVelocityWeighting": { "Value": 1.0 }, "general.smoothScroll.stopDecelerationWeighting": { "Value": 1.0 }, "general.smoothScroll.msdPhysics.motionBeginSpringConstant": { "Value": 1100 }, "general.smoothScroll.msdPhysics.regularSpringConstant": { "Value": 1100 }, "general.smoothScroll.msdPhysics.slowdownMinDeltaMS": { "Value": 8 }, "general.smoothScroll.msdPhysics.slowdownMinDeltaRatio": { "Value": 2 }, "general.smoothScroll.msdPhysics.slowdownSpringConstant": { "Value": 250 }, "general.smoothScroll.msdPhysics.continuousMotionMaxDeltaMS": { "Value": 12 }, "general.smoothScroll.scrollbars.durationMinMS": { "Value": 80 }, "general.smoothScroll.scrollbars.durationMaxMS": { "Value": 180 }, "general.smoothScroll.pages.durationMinMS": { "Value": 80 }, "general.smoothScroll.pages.durationMaxMS": { "Value": 180 }, "general.smoothScroll.other.durationMinMS": { "Value": 80 }, "general.smoothScroll.other.durationMaxMS": { "Value": 180 }, "mousewheel.min_line_scroll_amount": { "Value": 45 }, "mousewheel.default.delta_multiplier_y": { "Value": 300 } /* Optionnel Wayland ,"widget.wayland.vsync.enabled": { "Value": true } */ } } }
Placer le fichier dans : /etc/firefox/policies/policies.json
Puis redémarrer Firefox et vérifier dans about:policies
.
Ajouter un commentaire