Skip to content

fix(pet): draw the egg without a clipPath so old iPads don't freeze - #1115

Merged
tempus2016 merged 1 commit into
mainfrom
fix/1113-kiosk-frozen-pet-egg
Oct 23, 2026
Merged

tempus2016 merged 1 commit into
mainfrom
fix/1113-kiosk-frozen-pet-egg

Conversation

@tempus2016

Copy link
Copy Markdown
Owner

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-pet group that wobbles with a transform-box: fill-box animation.

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

@github-actions github-actions Bot added cards Lovelace cards / frontend (www/*.js) tests Test suite labels Oct 23, 2026
@tempus2016
tempus2016 merged commit 676a5e7 into main Oct 23, 2026
16 checks passed
@tempus2016
tempus2016 deleted the fix/1113-kiosk-frozen-pet-egg branch October 23, 2026 23:27
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cards Lovelace cards / frontend (www/*.js) tests Test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Kiosk Page frozen after adopting a pet

1 participant