Skip to content

Prevent accidental scroll recording with high-resolution wheels - #1444

Merged
lujjjh merged 2 commits into
mainfrom
fix/recorder-scroll-threshold
Oct 10, 2026
Merged

lujjjh merged 2 commits into
mainfrom
fix/recorder-scroll-threshold

Conversation

@lujjjh

@lujjjh lujjjh commented Oct 10, 2026

Copy link
Copy Markdown
Collaborator

Small movements of a high-resolution wheel could immediately register as scrolling in the button recorder.

Require at least half a detent before recording vertical scrolling, matching the threshold used by line scrolling. Reuse the existing scroll movement accumulator, with subsequent recognitions one full detent apart. Reset accumulated movement on direction reversal, inactivity, modifier changes, or a new recording session.

Also simplify AGENTS.md so user confirmation of manual testing is sufficient to create a PR, without requiring a detailed test report.

Validation:

  • Passed 93 related unit tests, including 5 new regression tests covering the threshold and reset behavior.
  • The user confirmed manual testing is complete.

Assisted by OpenAI Codex.

lujjjh and others added 2 commits October 10, 2026 22:08
Require half a detent before recording high-resolution vertical scrolling and reset accumulated movement across recording transitions.

Co-authored-by: Codex <[email protected]>
@lujjjh lujjjh added bug Something isn't working documentation Improvements or additions to documentation labels Oct 10, 2026
@coderabbitai

coderabbitai Bot commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Repository: linearmouse/linearmouse/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2413db52-3a13-4687-9225-a9d4a50bb60f

📥 Commits

Reviewing files that changed from the base of the PR and between 34a5390 and 5c2936a.


📒 Files selected for processing (3)
  • AGENTS.md
  • LinearMouse/EventTransformer/EventTransformerManager.swift
  • LinearMouseUnitTests/EventTransformer/EventTransformerManagerTests.swift

 _________________________________________________
< My whiskers twitch when I detect a memory leak. >
 -------------------------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR

🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@lujjjh
lujjjh merged commit 8781784 into main Oct 10, 2026
1 of 2 checks passed
@lujjjh
lujjjh deleted the fix/recorder-scroll-threshold branch October 10, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant