mouse click in the TUI is not aligned with the TUI #56

Closed
opened 2026-08-03 19:24:46 +00:00 by hugo · 1 comment
Owner

for example the 1-5 tabs clicking them with the mouse is wrong - the mouse seems to targert 5 large areas over the full width, whereas the tabs are shown left-aligned (which is correct, I like it that way). The mouse activities need to be better aligned with what is on the screen.

Also the scrolling via scroll wheel feels weird, it seems to be super fast. Not at all natural.

Maybe use computer use and ghostty to run the app in such a terminal and try the mouse clicking and wheeling that way?

for example the 1-5 tabs clicking them with the mouse is wrong - the mouse seems to targert 5 large areas over the full width, whereas the tabs are shown left-aligned (which is correct, I like it that way). The mouse activities need to be better aligned with what is on the screen. Also the scrolling via scroll wheel feels weird, it seems to be super fast. Not at all natural. Maybe use computer use and ghostty to run the app in such a terminal and try the mouse clicking and wheeling that way?
hugo added this to the first feature complete release milestone 2026-08-03 19:24:46 +00:00
hugo added the bugcritical labels 2026-08-03 19:24:46 +00:00
Author
Owner

Implemented in 95526f8.

  • Replaced the five full-width tab hit regions with exact hit boxes matching Ratatui's left-aligned title, padding, and divider layout.
  • Persisted Ratatui's actual rendered list offset so clicks select the row visibly under the pointer after scrolling.
  • Reduced list wheel movement from three items to one item per event and scoped it to the list pane.
  • Added one-line wheel scrolling for the Preview pane; wheel input outside the list and Preview no longer changes either pane.
  • Added regression tests for exact tab hit boxes and scrolled-list row hit testing.

Verification:

  • cargo fmt --all -- --check
  • RUSTFLAGS="-D warnings" cargo check --workspace --all-targets
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test --workspace (43 tests plus doc tests)
  • Live PTY run against the configured server with terminal-native SGR mouse events: rendered tab click switched to Issues, unused tab-bar space did nothing, list wheel moved one item, and Preview wheel moved one line
  • Computer Use was attempted with both Ghostty and Apple Terminal, but this environment's Computer Use runtime blocks both terminal bundle IDs before interaction
  • Release gotcha and gotcha-tui binaries built and installed to ~/.local/bin; installed TUI help invocation verified

This is a TUI-only change, so no iPhone build or deployment is required.

Implemented in `95526f8`. - Replaced the five full-width tab hit regions with exact hit boxes matching Ratatui's left-aligned title, padding, and divider layout. - Persisted Ratatui's actual rendered list offset so clicks select the row visibly under the pointer after scrolling. - Reduced list wheel movement from three items to one item per event and scoped it to the list pane. - Added one-line wheel scrolling for the Preview pane; wheel input outside the list and Preview no longer changes either pane. - Added regression tests for exact tab hit boxes and scrolled-list row hit testing. Verification: - `cargo fmt --all -- --check` - `RUSTFLAGS="-D warnings" cargo check --workspace --all-targets` - `cargo clippy --workspace --all-targets -- -D warnings` - `cargo test --workspace` (43 tests plus doc tests) - Live PTY run against the configured server with terminal-native SGR mouse events: rendered tab click switched to Issues, unused tab-bar space did nothing, list wheel moved one item, and Preview wheel moved one line - Computer Use was attempted with both Ghostty and Apple Terminal, but this environment's Computer Use runtime blocks both terminal bundle IDs before interaction - Release `gotcha` and `gotcha-tui` binaries built and installed to `~/.local/bin`; installed TUI help invocation verified This is a TUI-only change, so no iPhone build or deployment is required.
hugo closed this issue 2026-08-03 20:14:33 +00:00
Sign in to join this conversation.