Skip to content

Scroll acceleration and inertia remain active when set to 0 #1303

Closed

Description

@rafajrichard

OS

macOS 26.5.2 (25F84)

LinearMouse

v0.11.3

Describe the bug

Scroll acceleration and inertia still affect smooth scrolling when both settings are set to 0. Faster wheel input produces a greater scrolling distance for the same number of wheel ticks, and scrolling continues after wheel input stops.

To reproduce

  1. Enable smooth scrolling.
  2. Set Scroll response to Immediate.
  3. Set Scroll acceleration and Inertia to 0.
  4. Slowly scroll a fixed number of wheel ticks and note the distance travelled.
  5. Repeat with the same number of wheel ticks, but scroll them quickly.
  6. Observe that the resulting distance differs and that scrolling continues after wheel input stops.

Expected behavior

With acceleration and inertia set to 0, each wheel tick should produce a consistent scrolling distance regardless of input speed, and scrolling should stop when wheel input stops. Smooth scrolling should only animate the discrete wheel movement rather than introduce additional acceleration or momentum comparable to emulating trackpad scrolling.

Anything else?

Browser-native smooth scrolling in Chromium and Firefox demonstrates the intended type of behavior: wheel input is animated smoothly, but the scrolling distance remains tied to the wheel input and does not attempt to emulate trackpad momentum.

Activity

  1. added
    bug
    on Jul 26, 2026
  2. Solaris-star commented on Jul 27, 2026

    @Solaris-star

    I traced this to the smoothed engine rather than settings persistence: acceleration = 0 still uses the wheel-rate projection and the preset inputExponent, while inertia = 0 still clamps decay to at least 0.72, so both reported effects are expected from the current implementation. Before changing the physics contract, could a maintainer confirm whether slider value 0 is intended to mean disabled (no rate-dependent distance and no synthetic momentum), or only the current UI labels Flat / Short? The former requires an explicit zero-value engine path and regression tests for equal tick-distance plus no momentum; the latter would call for UI/help text clarification instead.

  3. YuriNachos commented on Aug 6, 2026

    @YuriNachos
    Contributor

    Looking into this. The rate-dependent amplification (pow(normalizedMagnitude, profile.inputExponent), SmoothedScrollingEngine.swift ~L85) and the momentumDecay clamp to 0.72...decayCeiling (~L178) both fire regardless of the slider, so acceleration=0 / inertia=0 don't actually disable them.

    Proposed approach (kept fully reversible): bypass the curve / return 0 behind a clean == lowerBound short-circuit, so every non-zero value behaves byte-for-byte as today, and a value just above 0 (e.g. 0.001) stays on the legacy path. Would that match your intent for the "off" end of the sliders? Happy to adjust if slider=0 should mean something else.

  4. rafajrichard commented on Aug 7, 2026

    @rafajrichard
    Author

    Thank you guys for looking into this. Making zero actually disable acceleration/inertia is a good step and fixes my issue of disabling these features.

    That said, I still feel that even at the minimum values, the inertia/acceleration is fairly pronounced and lasts longer than I would expect. I could see some users, myself included, wanting to set these effects much lower rather than fully disabling them.

    Adjusting the slider range or curve near zero may be outside the scope of this fix, but I wanted to mention it while it's being worked on.

  5. added a commit that references this issue on Aug 7, 2026
    37c0a8e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions