Move overview highlight with scroll wheel - #1436
Conversation
|
Codex review: needs changes before merge. Reviewed June 11, 2026, 11:46 AM ET / 15:46 UTC. Summary Reproducibility: yes. for the introduced defect: retain a sub-threshold precise trackpad delta, then send a same-direction coarse wheel event while the same Overview menu remains open. Source inspection shows the values are combined despite being measured in incompatible units. Review metrics: 2 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Track the active precise/coarse scroll mode and clear the accumulated remainder whenever it changes, add regression coverage for both transition directions, and keep the release-owned changelog entry out of this normal feature PR. Do we have a high-confidence way to reproduce the issue? Yes for the introduced defect: retain a sub-threshold precise trackpad delta, then send a same-direction coarse wheel event while the same Overview menu remains open. Source inspection shows the values are combined despite being measured in incompatible units. Is this the best way to solve the issue? No, not yet. Routing synthetic mouse movement through the real provider cards is appropriate, but accumulation must reset or remain separate when Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 88c43eeb8485. Label changesLabel justifications:
Evidence reviewedAcceptance criteria:
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 19def14d7e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
66eb328 to
c1abd3c
Compare
|
Fixed the runtime blocker on the latest head ( Proof:
Fresh exact-head CI is now running. |
c1abd3c to
ccb17c6
Compare
|
Rebased onto
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ccb17c60f3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| { | ||
| self.overviewScrollAccumulatedDelta = 0 | ||
| } | ||
| self.overviewScrollAccumulatedDelta += delta |
There was a problem hiding this comment.
Reset accumulation when scroll units change
When a menu stays open and the user switches between a precise device and a line-based wheel, this accumulator combines values measured in different units while the threshold below is chosen from only the current event. For example, a leftover 20 pixel trackpad delta followed by one wheel notch with the same sign is compared against the 0.9 line threshold and emits the capped 3 steps instead of one, so users with an external mouse/trackpad can see the highlight jump unexpectedly. Track the last hasPreciseScrollingDeltas mode and clear the remainder when it changes, or keep separate accumulators per unit.
Useful? React with 👍 / 👎.
ccb17c6 to
c15ee72
Compare
|
Rebased onto current Proof:
Reviewed head: |
c15ee72 to
13feb0f
Compare
|
Rebased on current Proof:
The fix remains scoped to Overview-row scroll routing; submenu scrolling and non-Overview menus retain native event handling. |
Summary
Scrolling the wheel (or trackpad) while the overview tab is open now moves the row highlight up and down, so you can flick through providers without moving the pointer.
Behavior
Tests
StatusMenuOverviewScrollTests(7 tests): step thresholds for precise/line devices, multi-step flicks capped at 3, momentum swallowing, direction reversal reset, submenu passthrough, and non-overview menus ignoring the wheel.Test plan
swift test --filter StatusMenuOverviewScroll— 7/7 pass./Scripts/lint.sh lint— 0 violations