ifcurl/forgejo/custom
Bruno Postle 369b7f98e3 Fix model reload transition: snapshot overlay + bfcache handling
- Inline script at top of <body> creates the snapshot overlay immediately
  on page load, before the deferred module script runs, eliminating the
  black flash between navigation and overlay appearance
- Save a JPEG snapshot to sessionStorage before navigating to a new ref;
  the overlay covers the blank WebGL canvas while the model reloads
- Fade the overlay out after two animation frames post-load so the canvas
  has painted before the transition begins
- Reload on pageshow with persisted=true: bfcache restore left the WebGL
  canvas blank and skipped the inline script; a fresh reload lets the
  snapshot overlay work correctly
- Replace native <datalist> ref picker with a custom dropdown; the native
  datalist won't open programmatically via .focus() in most browsers

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-17 10:23:29 +01:00
..
public/assets Fix model reload transition: snapshot overlay + bfcache handling 2026-05-17 10:23:29 +01:00