HERMES-GIELIE/static
fxd-jason f7f8fc6496 fix: _loadOlderMessages scrolls to bottom instead of preserving position
When _loadOlderMessages prepends older messages, the viewport snaps
to the bottom instead of staying where the user was.

Two bugs compounding:
1. Wrong scrollable container. Code used `$("msgInner")` for scrollHeight
   and scrollTop, but #msgInner has no overflow-y — it is a flex column.
   The actual scrollable container is #messages (`.messages{overflow-y:auto}`).
   Setting msgInner.scrollTop was silently ignored.
2. renderMessages calls scrollToBottom at the end (ui.js:2552),
   which unconditionally scrolls #messages to the bottom and sets
   _scrollPinned=true. Since bug #1 made the scroll-restore a no-op,
   the page landed at the bottom every time.

Fix:
- Changed scroll restore target from `$("msgInner")` to `$("messages")`.
- Reset _scrollPinned = false after restoring the user position,
  so scrollToBottom does not re-fire on next tick.
2026-04-29 04:30:55 +00:00
..
vendor chore: vendor streaming-markdown@0.2.15, remove CDN dependency 2026-04-24 01:05:20 +00:00
boot.js fix: batch v0.50.232 — fuzzy match, codex detection, workspace reload, timestamp sync (#1198) 2026-04-27 18:40:13 -07:00
commands.js fix+feat: batch v0.50.236 — OAuth providers fix, profile switch UX, YOLO mode (#1211) 2026-04-27 22:56:12 -07:00
favicon-32.png fix: add favicon (SVG + PNG + ICO), fix static MIME types (#613) 2026-04-16 20:11:02 -07:00
favicon.ico fix: add favicon (SVG + PNG + ICO), fix static MIME types (#613) 2026-04-16 20:11:02 -07:00
favicon.svg fix: add favicon (SVG + PNG + ICO), fix static MIME types (#613) 2026-04-16 20:11:02 -07:00
i18n.js fix+feat: batch v0.50.236 — OAuth providers fix, profile switch UX, YOLO mode (#1211) 2026-04-27 22:56:12 -07:00
icons.js refactor(ui): three-column layout with left rail + main-view migration (#899) 2026-04-24 09:05:25 -07:00
index.html fix+feat: batch v0.50.236 — OAuth providers fix, profile switch UX, YOLO mode (#1211) 2026-04-27 22:56:12 -07:00
login.js v0.50.210: gpt-5.5, cron titles, agent cache, bfcache fix, onboarding fix, mermaid CSP, PWA auth (#1056) 2026-04-25 15:47:44 -07:00
manifest.json feat: add PWA support (manifest, service worker, install prompt) (#920) 2026-04-23 15:14:21 -07:00
messages.js fix+feat: batch v0.50.236 — OAuth providers fix, profile switch UX, YOLO mode (#1211) 2026-04-27 22:56:12 -07:00
onboarding.js v0.50.210: gpt-5.5, cron titles, agent cache, bfcache fix, onboarding fix, mermaid CSP, PWA auth (#1056) 2026-04-25 15:47:44 -07:00
panels.js fix+feat: batch v0.50.236 — OAuth providers fix, profile switch UX, YOLO mode (#1211) 2026-04-27 22:56:12 -07:00
sessions.js fix: _loadOlderMessages scrolls to bottom instead of preserving position 2026-04-29 04:30:55 +00:00
style.css fix+feat: batch v0.50.236 — OAuth providers fix, profile switch UX, YOLO mode (#1211) 2026-04-27 22:56:12 -07:00
sw.js feat: add PWA support (manifest, service worker, install prompt) (#920) 2026-04-23 15:14:21 -07:00
ui.js fix: batch v0.50.234-235 — XSS hardening, workspace validation, profile switch fixes (#1206) 2026-04-27 21:39:30 -07:00
workspace.js fix: batch v0.50.229 — session perf, ephemeral sessions, iOS zoom (#1183) 2026-04-27 16:27:03 -07:00