Skip to content

Add smoothed scrolling mode - #1108

Merged
lujjjh merged 1 commit into
mainfrom
feature/smoothed-scrolling
Mar 21, 2026
Merged

lujjjh merged 1 commit into
mainfrom
feature/smoothed-scrolling

Conversation

@lujjjh

@lujjjh lujjjh commented Mar 21, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

This PR adds a new Smoothed scrolling mode for pointer devices, with configurable curve presets, custom tuning controls, and synthetic momentum events that better approximate inertial scrolling.

It also refines the scrolling settings UI so preset selection and custom tuning are clearer and more compact.

What Changed

  • add a new Smoothed scrolling mode to scrolling configuration
  • add preset curves including Ease In, Ease Out, Ease In Out, Linear, Quadratic, Cubic, Quartic, Smooth, and Custom
  • add custom tuning controls for response, speed, acceleration, and inertia
  • add a smoothed scrolling engine and transformer that emit synthetic pixel-based scroll events with scroll and momentum phases
  • preserve compatibility with existing scrolling modifiers and synthetic-event handling
  • refine momentum re-engagement so additional wheel input during momentum is blended more smoothly instead of causing a hard jump
  • improve the settings UI for preset selection, custom tuning, and preset-to-custom transitions
  • update configuration docs, schema, and tests for the new mode

Trackpad Support

Trackpad support is still a work in progress.

The current branch keeps native trackpad scrolling settings working correctly, and includes partial groundwork for smoothed handling of continuous input, but full trackpad-specific smoothing behavior is not finalized yet.

Related issues

Testing

  • xcodebuild test -scheme LinearMouse -destination 'platform=macOS'

Passed locally with 58 tests.

@lujjjh
lujjjh marked this pull request as ready for review March 21, 2026 05:05
@lujjjh
lujjjh force-pushed the feature/smoothed-scrolling branch from 77aa59d to c6293a3 Compare March 21, 2026 05:06
@lujjjh
lujjjh force-pushed the feature/smoothed-scrolling branch from c6293a3 to 12c05ee Compare March 21, 2026 05:07
@lujjjh lujjjh added the enhancement New feature or request label Mar 21, 2026
@lujjjh lujjjh changed the title Add smoothed scrolling mode with presets and tuning controls Add smoothed scrolling mode Mar 21, 2026
@lujjjh
lujjjh merged commit e117c7e into main Mar 21, 2026
1 check passed
@lujjjh
lujjjh deleted the feature/smoothed-scrolling branch March 21, 2026 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant