MorphSurface refresh: first-morph flash fix + anchor/absorption/spring props#10
Merged
Conversation
…nd spring props - Fix one-frame flash on every open flip: declarative path/speculars now track the current spring frame mid-morph (not the target scene), and the static-scene resync effect is guarded by a synchronously-set ref - anchor="top" pins the top edge so the panel pours downward from the pill - absorption="pull" moves satellites at full size and swallows them at the edge (radius derived from travel, so drops re-emerge on close) - bodySpring/satelliteSpring overrides, resolved live via refs - Showcase page: anchor/absorption/spring-preset controls, honest snippet Claude-Session: https://claude.ai/code/session_01EsufuYzyhES9JwrhNz34qC
yousefh409
added a commit
that referenced
this pull request
Jul 3, 2026
The parallel refreshes (PRs #10-14) grew the measured core bundle from 12.39 kB to 15.18 kB while the pin stayed at 14.9 kB — each branch fit alone, the merge result didn't. Re-pinned at +20% headroom per the documented convention. Claude-Session: https://claude.ai/code/session_01CFzWWbVjWefJo5At65oS3p
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
openflip: the declarativepath/specularsprops jumped to the target scene before the spring loop took over (and a resync effect with a stalesettlingflag did the same via the imperative handle). Declarative props now track the current spring frame mid-morph; the resync is guarded by a synchronously-set ref.anchorprop:"top"pins the top edge so the panel pours downward out of the pill (faces reposition to match). Default"center"unchanged.absorptionprop:"pull"moves satellites at full size and swallows them over the last stretch of travel (radius derived from position, so drops re-emerge on close). Default"shrink"unchanged.bodySpring/satelliteSpringoverrides, resolved live via refs so preset switches apply to the next morph.No
src/liquid/engine changes — all component-local.Test Plan
npm run typecheckandnpx tsc --noEmit -p playground/tsconfig.jsonpassvitestsuite green: 329/329 (including all engine tests)https://claude.ai/code/session_01EsufuYzyhES9JwrhNz34qC