mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-18 00:55:54 +00:00
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> |
||
|---|---|---|
| .. | ||
| ani-cursor | ||
| skin-database | ||
| skin-museum-og | ||
| webamp | ||
| webamp-demo | ||
| webamp-docs | ||
| webamp-modern | ||
| winamp-eqf | ||