focus/crates
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
..
focus-core fix(providers): keep the API's real tool-call ids across turns 2026-08-09 22:07:18 +08:00
focus-harness refactor(test): move all unit tests from src/ into tests/<module>_tests.rs 2026-08-09 21:09:01 +08:00
focus-json chore(workspace): sync manifests, docs and lockfile 2026-08-09 21:00:04 +08:00
focus-providers fix(providers): keep the API's real tool-call ids across turns 2026-08-09 22:07:18 +08:00
focus-tools refactor(test): move all unit tests from src/ into tests/<module>_tests.rs 2026-08-09 21:09:01 +08:00
focus-transport refactor(test): move all unit tests from src/ into tests/<module>_tests.rs 2026-08-09 21:09:01 +08:00
focus-tui fix(tui): correct wheel/PageUp scroll direction and line-step 2026-08-09 22:34:51 +08:00