Closed Bug 1954212 Opened 1 year ago Closed 4 months ago

Add preferences to customize the speed of autoscroll

Categories

(Core :: Panning and Zooming, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
154 Branch
Tracking Status
firefox154 --- fixed

People

(Reporter: botond, Assigned: someanon10)

References

Details

Attachments

(1 external file)

Currently, the constants governing the speed of autoscroll animations are hard-coded.

We have received feedback from some users (Connect thread) who find the current speed too fast and would like to be able to customize it.

This bug tracks exposing the relevant constants in about:config to allow users to customize them.

Note that the autoscroll logic is found in two places in the code:

The two should remain in sync, e.g. both should respect any new preferences.

See Also: → 1725184

The autoscroll speed divisor was hardcoded (12) in two synchronized
codepaths: the compositor (gfx/layers/apz/src/AutoscrollAnimation.cpp)
and the main thread (toolkit/actors/AutoScrollChild.sys.mjs). Expose it
as a percentage multiplier pref (apz.autoscroll.speed_multiplier;
100 = default, 200 = double speed, 50 = half speed), read by both paths
and defaulting to 100 so existing behavior is unchanged. The multiplier
and resulting speed are clamped to >= 1 to avoid a zero divisor.

Assignee: nobody → someanon10
Status: NEW → ASSIGNED
Attachment #9597744 - Attachment description: Bug 1954212 - Add apz.autoscroll.speed_multiplier pref to scale autoscroll speed. r?botond → Bug 1954212 - Add general.autoscroll.speed_multiplier pref to scale autoscroll speed. r?botond

The following patch is waiting for review from an inactive reviewer:

ID Title Author Reviewer Status
D306915 Bug 1954212 - Add general.autoscroll.speed_multiplier pref to scale autoscroll speed. r?botond someanon10 botond: Back Jun 24, 2026

:someanon10, could you please find another reviewer?

For more information, please visit BugBot documentation.

Flags: needinfo?(someanon10)
Flags: needinfo?(someanon10)
Pushed by bballo@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/070102881b70 https://hg.mozilla.org/integration/autoland/rev/90d0cb734aa6 Add general.autoscroll.speed_multiplier pref to scale autoscroll speed. r=botond
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
QA Whiteboard: [qa-triage-done-c155/b154]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: