Scrolling: mouse wheel and keyboard, pinned view while streaming #115

Merged
hermes merged 1 commits from scrolling into main 2026-10-02 14:32:27 +00:00
Collaborator
  • New Scroll (scroll.rs): offset pinned from the top once scrolled, follows the bottom otherwise. Streaming text no longer moves what you are reading; reaching the bottom or sending a prompt follows again. Used by chat, side panel and agent detail (was two u16 counters).
  • Keys: pgup/pgdn half a page (was fixed 10), alt+pgup/pgdn full page, alt+up/down 3 lines, ctrl+home/end top / live bottom. Plain Home/End/Up/Down stay with the editor. Open side panel + empty editor: the keys scroll the panel.
  • Mouse: wheel (3 lines) scrolls the region under the pointer (chat, side panel, agent detail); ignored over pickers/popups. Capture is on by default, restored on exit; mouse = false in config or HX_MOUSE=0 turns it off (text selection then works without shift).
  • Footer ↑N now = lines below the view.

No click handling (wheel only). Tests: scroll.rs logic (pin while growing, paging, clamp), key flow incl. pinned view unchanged while 20 rows stream in, wheel routing by pointer region. all.sh green locally (134 unit tests).

- New `Scroll` (scroll.rs): offset pinned from the top once scrolled, follows the bottom otherwise. Streaming text no longer moves what you are reading; reaching the bottom or sending a prompt follows again. Used by chat, side panel and agent detail (was two u16 counters). - Keys: pgup/pgdn half a page (was fixed 10), alt+pgup/pgdn full page, alt+up/down 3 lines, ctrl+home/end top / live bottom. Plain Home/End/Up/Down stay with the editor. Open side panel + empty editor: the keys scroll the panel. - Mouse: wheel (3 lines) scrolls the region under the pointer (chat, side panel, agent detail); ignored over pickers/popups. Capture is on by default, restored on exit; `mouse = false` in config or `HX_MOUSE=0` turns it off (text selection then works without shift). - Footer `↑N` now = lines below the view. No click handling (wheel only). Tests: scroll.rs logic (pin while growing, paging, clamp), key flow incl. pinned view unchanged while 20 rows stream in, wheel routing by pointer region. all.sh green locally (134 unit tests).
hermes added 1 commit 2026-10-02 14:31:57 +00:00
Scrolling: mouse wheel per region, page/line/top/bottom keys, pinned view while streaming
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
f0a0111343
hermes merged commit 56f23e798b into main 2026-10-02 14:32:27 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/hx#115