Skip to content

Let the landing sculpture scroll natively in section grids - #1548

Merged
lovasoa merged 2 commits into
mainfrom
codex/native-sculpture-grid
Oct 13, 2026
Merged

lovasoa merged 2 commits into
mainfrom
codex/native-sculpture-grid

Conversation

@lovasoa

@lovasoa lovasoa commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

The landing sculpture currently follows section anchors by moving a canvas inside a fixed viewport layer on every scroll update. When JavaScript falls behind, the sculpture can lag behind the page.

After the opening flight, the shared preview, canvas, and input target now live inside the active section's grid slot. Native scrolling and section stickiness keep them aligned even while animation callbacks are paused. Docking immediately rebases the last painted canvas and input coordinates so the sculpture stays visible until the renderer's next frame. Section grids replace absolute anchor offsets, manual text indentation, negative margins, and reserved heading heights; native section layering also removes the fixed sculpture's cover-position calculations. The renderer, rotation, zoom, reduced-motion behavior, and reversible handoffs remain shared.

Validation: npm test, npm run build, and cargo build passed. Browser coverage includes a paused-animation scrolling regression for the live and baked renderers, responsive text clearance, and touch recovery that waits for the native fling to finish. The touch recovery scenario passed five consecutive runs. Desktop and phone screenshots were inspected.

The docking regression observes the canvas during the parent move, before a later renderer frame can hide an off-screen jump. It failed on desktop and phone before the fix; all 32 landing-page browser tests pass with the fix.

The full Playwright run completed with 143 passes and one failure: the chart documentation test's getByText('Loading...') assertion matches 17 elements. The same failure was reproduced in a clean checkout of main at d4e6965. Every landing-page test passed.

Preview: http://51.254.198.140:18750/

@lovasoa
lovasoa enabled auto-merge October 13, 2026 08:32
@lovasoa
lovasoa added this pull request to the merge queue Oct 13, 2026
Merged via the queue into main with commit d9a5f35 Oct 13, 2026
52 checks passed
@lovasoa
lovasoa deleted the codex/native-sculpture-grid branch October 13, 2026 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant