Skip to content

Clamp large system double-click intervals safely - #199

Merged
mblauberg merged 1 commit into
mainfrom
lane/dblclick-clamp
Nov 4, 2026
Merged

mblauberg merged 1 commit into
mainfrom
lane/dblclick-clamp

Conversation

@mblauberg

Copy link
Copy Markdown
Owner

Summary

Clamp the system double-click interval in floating-point space before converting it to milliseconds as an integer. Extremely large finite system values now resolve to the supported upper bound instead of trapping.

How checked

  • swift build and swift test --filter TriggerTableTests passed on Swift 6.4.2; the suite includes extreme finite values, invalid values, and rounding.
  • No live mouse or app testing; this is a data conversion change.

Footprint

No daemon or menu code changed.

Docs

No update needed: the documented interval range is unchanged.

Agent evidence
  • git diff --check passed.
  • Reviewed numeric conversions in Sources/PureMouseKit; no other convert-before-clamp pattern found.
  • ConfigGoldenTests is unchanged. Existing compiler warnings appeared in unrelated files.

@mblauberg mblauberg added the bug Something isn't working label Nov 4, 2026
@mblauberg
mblauberg merged commit d346279 into main Nov 4, 2026
2 checks passed
@mblauberg
mblauberg deleted the lane/dblclick-clamp branch November 4, 2026 06:41
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