focus/crates/focus-tui/tests
DaiChaoXiong acddf7be1b fix(tui): correct wheel/PageUp scroll direction and line-step
The scroll offset semantics were inverted for the wheel and PageUp:
is the content offset (larger = newer), so scrolling up must DECREASE it, but
ScrollUp and PageUp both INCREASED it — every wheel event (either direction)
moved toward the bottom, and at the bottom (follow=true) an up-notch added 3
then got clamped back to max, making the wheel dead until keyboard-scrolling
away. Now:

- wheel ScrollUp/ScrollLeft: offset -1, follow cleared (works from the bottom)
- wheel ScrollDown/ScrollRight: offset +1, follow restored at the bottom
- PageUp: offset - view_height; PageDown: offset + view_height
- one line per wheel notch (was 3) for line-by-line scrolling

regression test drives handle_mouse with synthetic events (direction,
line-step, no underflow, follow transitions).
2026-08-09 22:34:51 +08:00
..
fake feat(tui): add focus-tui terminal UI 2026-08-09 21:35:58 +08:00
app_session_tests.rs fix(tui): correct wheel/PageUp scroll direction and line-step 2026-08-09 22:34:51 +08:00
config_tests.rs feat(tui): add focus-tui terminal UI 2026-08-09 21:35:58 +08:00
format_tests.rs feat(tui): markdown rendering, real-time transcript, scrolling, human args 2026-08-09 22:21:30 +08:00
job_tests.rs feat(tui): add focus-tui terminal UI 2026-08-09 21:35:58 +08:00
markdown_tests.rs feat(tui): markdown rendering, real-time transcript, scrolling, human args 2026-08-09 22:21:30 +08:00
state_tests.rs feat(tui): cross-platform wheel scroll and two-level expansion 2026-08-09 22:30:04 +08:00