# Herdr UI scroll tweaks Herdr's familiar main window with smooth wheel movement in the stock UI panels and scrollbar thumbs that travel with their content. The person's theme and coding-agent terminals remain theirs. This is a layout and a set of companion mods, not a change to terminal rendering. ![Herdr UI scroll tweaks](preview.png) ## What you see At zoom 1, the left sidebar is 268 px wide, resizable from 44 to 480 px. Its 46 px top bar contains search and the sidebar toggle. Spaces and Agents share the middle vertically; the footer has Settings and Add machine in 69 px. Space and agent rows are 30 px high, with compact 26 px rows in the narrow rail. Agent headers show Needs you, Done, Working and Idle. The right side has a 42 px tab bar, the active tab's terminal panes, an optional 368 px Files/Changes panel, and a 28 px status bar. Terminal panes retain the main layout's 10 px rounded corners, 8 px gaps and 30 px headers. The colors and fonts inherit Herdr's current settings. The preview uses stock graphite and synthetic workspaces. Settings includes Scrolling: an interface toggle, Quick / Normal / Gentle speed choices and an optional terminal preference if the app already supports it. The Settings body fills the actual dialog height at every zoom, instead of using a fixed 620 px content height. ## How it behaves Wheel line events move the content and scrollbar thumb using the same native ease-out policy. Normal is 150 ms, Quick 80 ms, Gentle 220 ms. Pixel gestures and direct thumb drags are immediate. The viewport clamps at both ends and after resizing or filtering. Native reduced-motion preferences are respected. Very dense input bursts may snap to keep virtual-row coverage bounded. Working agents keep their native spinning status ring, blocked agents use Needs you, finished unseen work uses Done, and idle agents retain their quiet status marker. The original order, grouping, pins, folding, hover actions and click-to-focus behavior are preserved. Keyboard selection in search remains visible, and scrollbar dragging updates the selection-follow state. Pure vertical wheel input on the tab bar still selects the previous/next tab; horizontal input scrolls the tab strip. The optional `keys.json` snippet is scoped to this layout. Fit its UI chords to the person's actual bindings. The installer can instead redirect existing UI actions with `--route-keys`, backing up and preserving unrelated key entries. Do not replace a person's whole key file with the snippet. ## Built from `layouts/ui-scroll-tweaks.json` is a row containing the sidebar column and work column. `content.tab = active` shows the existing core-backed tab; the layout contains no machine, space, tab or terminal IDs. Its preview is `mods/scroll-tweaks/preview.svg`, and its terminal menu is `scroll-tweaks-menu`. The mods are public-API copies of Herdr 0.1.12's Agents, Spaces, Tabs, Files, Changes, workspace chrome/status, pane header, menus, prompt/confirm, Help, Picker, Worktree, Machine Add, Settings and Palette. Their published directories have a `scroll-tweaks` prefix; `manifest.json` records the source-name mapping. `herdr.js` routes their UI actions and preserves human-readable shortcut hints. `scroll.js` supplies measured one- or two-axis viewports and native slider-based thumbs. Long diffs draw a bounded overscan window rather than every row. State comes from `spaces`, `agents`, `terminals`, `panes`, `focused`, `layout`, `theme`, `settings` and `shared`. Existing actions use `run` and `openOverlay`. Files, Git and machine features retain their original `readTextFile`, `watchFolder`, `exec`, `hc` and picker behavior. The assets are the shipped Herdr/Lucide SVGs and a generic preview SVG. There are no new networking endpoints or binary renderer dependencies. ## Watch out The copies are based on Herdr desktop 0.1.12 and have also been checked in stock 0.1.13. Stock installations have no native terminal smoothing preference, so the terminal toggle is absent there. Native feedback, Welcome/What's New, internal app dialogs and embedded code editors cannot be covered through these copies. Other layouts and third-party mods need their own integration. Clone or add the files under new names on collision; do not overwrite an unrelated mod. Keep native drag geometry fixed while animating the zero-size thumb anchor. Use the same duration and easing as the content. Stop motion for pixel input, dragging and resize clamps. Do not animate by repeatedly notifying JavaScript views. Do not reuse another callback's `cx`. Nested font-list wheel events must not move the Settings page. ## Done when Every mod passes `herdr-app check`. In an isolated app/core home and display, wheel movement has multiple intermediate frames and then settles; thumbs move with content; both diff axes and horizontal tabs work; keyboard search selects the expected row; long jumps keep a bounded row count; and Settings fills tall and short dialogs at 100%, 120% and 150% zoom. Turning animation off must move directly. Installing from stock files and rolling back must preserve the old layout and exact original keys. Never stop the person's app/core or inject input on their real display.