Repository navigation
fix(pet): draw the egg without a clipPath so old iPads don't freeze - #1115
Merged
Merged
Conversation
3 tasks done
tempus2016
added a commit
that referenced
this pull request
Oct 24, 2026
…eeze (#1128) Every pet animation (bounce, sway, wobble, hop, evolve, the laid egg) ran as a CSS transform on an SVG <g> with transform-box: fill-box, and the sleepy mood put a CSS filter on that group. Old iOS Safari repaints an animated SVG group on the main thread every frame, so the kiosk froze once a pet hatched, just as the clipped egg did before #1115. The scene is now stacked full-size SVG layers (back, pet, front, laid egg); the pet and egg layers sit in HTML elements that carry the animation and the filter, which Safari moves on the GPU. It looks the same. Fixes #1126
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.
On iOS 15 Safari the kiosk page froze once an adopted pet was still an egg. The egg was the only pet art with a
<clipPath>, and it sat inside the.tm-petgroup that wobbles with atransform-box: fill-boxanimation.The egg's shading is now a crescent path cut to the egg's edge, so no clip path is needed. It looks the same in every species.
Fixes #1113