[BUG] atlas: open morph no longer snaps the card on a quick close (#5)
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user