webamp/packages
Jordan Eldredge 6a45429e39 Fix scroll offset in contained mode (renderInto)
centerWindows() was unconditionally adding window.scrollX/Y, which
incorrectly offset window positions when using renderInto with a scrolled
page. Move scroll offset responsibility to callers so each can decide:
- contained (renderInto): no scroll offset needed
- non-contained (renderWhenReady): add scroll offset to viewport coords
- body fallback (centerWindowsInView): add scroll offset only for body

Also make parentDomNode required in browserWindowSizeChanged,
ensureWindowsAreOnScreen, and centerWindowsInView since the serialized
state code (the only caller without a parentDomNode) was removed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-15 20:07:00 -07:00
..
ani-cursor Add ESLint to ani-cursor and include in CI (#1323) 2025-11-27 18:31:36 -08:00
skin-database Remove unused RichText import from bluesky.ts to fix CI lint failure (#1346) 2026-03-24 21:08:48 -07:00
skin-museum-og Consolidate ESLint configs into root (#1324) 2025-11-27 21:32:10 -08:00
webamp Fix scroll offset in contained mode (renderInto) 2026-06-15 20:07:00 -07:00
webamp-demo Split demo site into its own package (#1351) 2026-06-07 14:40:07 -07:00
webamp-docs Fix incorrect method name in renderInto docs example 2026-06-15 10:32:05 -07:00
webamp-modern Clean up outdated references to yarn 2025-11-03 15:39:26 -08:00
winamp-eqf Remove legacy JS files from winamp-eqf package (#1327) 2025-11-28 11:51:02 -08:00