[BUG] atlas: open morph no longer snaps the card on a quick close (#5)

This commit is contained in:
Teddy Warner
2026-06-11 17:39:00 -07:00
committed by GitHub
parent 50e7012c64
commit e5bb5fbbc8
+2
View File
@@ -2198,6 +2198,8 @@
}, 0); }, 0);
if (start) { if (start) {
onceTransformEnd(modalCard, function () { onceTransformEnd(modalCard, function () {
// A close took over (is-open gone); clearing now snaps the card to centre.
if (!modal.classList.contains('is-open')) return;
modalCard.classList.remove('is-morphing'); modalCard.classList.remove('is-morphing');
modalCard.style.transform = ''; modalCard.style.transform = '';
}, 360); }, 360);