hermes-bsd/apps/desktop/scripts
Brooklyn Nicholson e67ab2e042 fix(desktop): stop chat scroll jumping by disabling native scroll anchoring
The thread renders virtualized turns in natural document flow with padding
spacers, and @tanstack/react-virtual already adjusts scrollTop itself when an
off-screen turn is measured and its real height differs from the 220px
estimate. With the browser default `overflow-anchor: auto`, native scroll
anchoring corrects that SAME size delta too, so the two double-correct and the
view lurches — most visibly with Windows mouse wheels, whose coarse notches
mount/measure several under-estimated turns per tick (Mac trackpads scroll
~1-3px/frame, keeping it sub-perceptual).

Set `overflow-anchor: none` on the thread viewport so only the virtualizer
compensates. Also adds `diag-scroll-reset.mjs`, a CDP wheel-up repro that A/B
tests the anchor behavior at runtime to confirm the fix.
2026-06-02 23:08:01 -05:00
..
after-pack.cjs
assert-root-install.cjs
before-build.cjs
click-session.mjs
dev-no-hmr.mjs
diag-jump.mjs
diag-scroll-reset.mjs
eval.mjs
leak-typing.mjs
measure-jump.mjs
measure-latency.mjs
measure-real-stream.mjs
measure-submit.mjs
measure-synthetic-stream.mjs
notarize-artifact.cjs
notarize.cjs
probe-renderer.mjs
probe-thread.mjs
profile-long-stream.mjs
profile-real-stream.mjs
profile-synth-stream.mjs
profile-typing-lag.md
profile-typing.mjs
reload-renderer.mjs
reload.mjs
set-exe-identity.cjs
stage-native-deps.cjs
test-desktop.mjs
write-build-stamp.cjs