Skip to content

Fix pointer speed input and mouse scope state - #202

Merged
mblauberg merged 1 commit into
mainfrom
lane/pointer-fixes
Nov 4, 2026
Merged

mblauberg merged 1 commit into
mainfrom
lane/pointer-fixes

Conversation

@mblauberg

@mblauberg mblauberg commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

Summary

Clamp typed pointer speeds before snapping and calculate distances without integer overflow. Clear the pending speed and typed draft when the effective mouse scope changes, so another mouse cannot inherit a stale reading.

How checked

  • swift build (Swift 6.4.2)
  • swift test --filter PureMouseSettingsTests (251 passed)
  • swift test --filter PureMouseAppSupportTests (529 tests; 8 issues, including notification-permission cross-process defaults timeout in the lane sandbox)
  • swift test --filter PointerPresetsTests (14 passed)
  • swift test --filter pointerEditingClearsPendingValuesOnScopeChange and --filter dpiShowsTheLiveValueOverTheConfiguredOne (passed)
  • No live mouse or app launch; regression tests exercise the pane state without a window.

Footprint

Not applicable; the daemon and menu app are unchanged.

Docs

No documentation change: this restores the existing documented pointer behavior, and the authorized write scope excludes docs.

Agent evidence

git diff --check passed. Added coverage for Int.min and Int.max snapping and clearing a request and draft on a scope change with the same live DPI. Local Swift is 6.4.2; CI checks Swift 6.3.

@mblauberg mblauberg added the bug Something isn't working label Nov 4, 2026
@mblauberg
mblauberg merged commit dc1041d into main Nov 4, 2026
2 checks passed
@mblauberg
mblauberg deleted the lane/pointer-fixes branch November 4, 2026 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant