Skip to content

fix(tui): inline menu scrolls at the shared 2-rows/notch rate - #78

Merged
jwp2987 merged 1 commit into
mainfrom
fix/issue5-inline-menu-scroll-rate
Aug 5, 2026
Merged

fix(tui): inline menu scrolls at the shared 2-rows/notch rate#78
jwp2987 merged 1 commit into
mainfrom
fix/issue5-inline-menu-scroll-rate

Conversation

@jwp2987

@jwp2987 jwp2987 commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Addresses the mouse-wheel finding in #5.

The inline menu's hand-rolled wheel handler passed the raw wheel delta to on_scroll (1 row/notch), while the editor and transcript scrollables move WHEEL_STEP (2) rows/notch via TuiScrollable — half the rate everywhere else.

Scale by the now-pub(crate) WHEEL_STEP (single source of truth in editor_element). Test's incidental delta assertion updated to the corrected rate (its purpose is bounds-clamping, unchanged). inline_menu 24/0.

🤖 Generated with Claude Code

The inline menu's hand-rolled mouse-wheel handler passed the raw wheel delta
straight to `on_scroll` (1 row per notch), while the editor and transcript
scrollables move `WHEEL_STEP` (2) rows per notch via `TuiScrollable` — so the
inline menu scrolled at half the rate of every other scroll surface.

Scale the inline menu's wheel delta by the now-`pub(crate)` `WHEEL_STEP`
constant (single source of truth in `editor_element`) so a notch moves the
same number of rows everywhere. Updates the bounds test's incidental delta
assertion to the corrected rate (its purpose is clamping, unchanged).

Addresses the mouse-wheel finding in #5.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012gDYSHa4oDvQbfungWwG1h
@jwp2987
jwp2987 merged commit b1841d6 into main Aug 5, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant