• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

umputun / revdiff / 25687579295
90%

Build:
DEFAULT BRANCH: master
Ran 11 May 2026 05:55PM UTC
Jobs 1
Files 69
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 May 2026 05:54PM UTC coverage: 89.79% (+0.03%) from 89.764%
25687579295

push

github

web-flow
fix(mouse): tree/TOC wheel scrolls one entry per notch (not three) (#181)

* fix(mouse): tree/TOC wheel = direct cursor nav, one entry per notch

Previously the hitTree branch passed wheelStep (3) to MotionPageDown/Up, so each wheel notch skipped 3 entries in the file tree and 3 sections in the TOC. Shift+wheel further amplified to half-page.

That's the diff-pane mental model bleeding into the sidebar. The sidebar is small and cheap; users expect j/k-style single-step navigation per wheel notch — same as every IDE/editor file tree.

Switched hitTree to call Move(MotionDown) / Move(MotionUp) (no count), ignoring the delta magnitude entirely. wheelStepFor no longer needs the hitZone param (only diff-pane consults it), so dropped that and simplified the function. Deleted the now-obsolete tree-half-page test and rewrote the TOC wheel test to use two notches (ParseTOC prepends a synthetic filename entry at lineIdx=0, so one notch from the start lands on a heading that shares lineIdx=0 — two notches lands on a heading with a distinct lineIdx).

* fix(review-loop): iteration 1 addressed 11 findings

- [major] README.md:710-711 — "Three lines per notch" and "Shift+scroll half-page" were claimed across all panes; now correctly scoped (tree/TOC = single-step regardless of shift, diff = wheelStep / half-page)
- [major] .claude-plugin/skills/revdiff/references/usage.md — same correction, kept byte-identical with README mouse section
- [major] plugins/codex/skills/revdiff/references/usage.md — same correction
- [major] site/docs.html:561-562 — same correction (must mirror README)
- [minor] CLAUDE.md:98 — "across panes" rewritten to scope wheelStep to diff + overlay only; tree/TOC ignores the constant
- [test-gap] mouse_test.go WheelInTreeMovesTreeCursor — broken up into 6 subtests asserting exact one-entry advance, wheel-up direction, shift-still-single-step, top/bottom clamp, and the negative invariant that tree wheel must not touch diff wheelState
- [test-gap] ... (continued)

10 of 10 new or added lines in 1 file covered. (100.0%)

9753 of 10862 relevant lines covered (89.79%)

3194.99 hits per line

Jobs
ID Job ID Ran Files Coverage
1 25687579295.1 11 May 2026 05:55PM UTC 69
89.79
GitHub Action Run
Source Files on build 25687579295
  • Tree
  • List 69
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a7446f14 on github
  • Prev Build on master (#25685776438)
  • Next Build on master (#25687828069)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc