atris 3.74.19 → 3.74.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/gm-phone-page.js +7 -7
- package/package.json +1 -1
package/lib/gm-phone-page.js
CHANGED
|
@@ -1621,9 +1621,9 @@ body.waiting .bet { position: absolute; left: 24px; right: 24px; width: auto; to
|
|
|
1621
1621
|
orb.melt(then, to, swap, fast);
|
|
1622
1622
|
}
|
|
1623
1623
|
|
|
1624
|
-
//
|
|
1625
|
-
// a frame to spare when none ran. A timer alone cut the last sixth of a
|
|
1626
|
-
// that started a frame late on a slow phone, and
|
|
1624
|
+
// a fade has run all the way: the node's opacity fade ended, or ms passed
|
|
1625
|
+
// with a frame to spare when none ran. A timer alone cut the last sixth of a
|
|
1626
|
+
// fade that started a frame late on a slow phone, and it vanished at 0.17.
|
|
1627
1627
|
function afterFade(node, ms, cb) {
|
|
1628
1628
|
var ran = false;
|
|
1629
1629
|
var finish = function (e) {
|
|
@@ -1669,7 +1669,7 @@ body.waiting .bet { position: absolute; left: 24px; right: 24px; width: auto; to
|
|
|
1669
1669
|
// reduced motion: no spiral; the card fades in where it goes
|
|
1670
1670
|
if (reduced) {
|
|
1671
1671
|
var show = function () { orb.settled(); showCard(card, true); bet.busy = false; if (after) after(); };
|
|
1672
|
-
if (fadeSphere())
|
|
1672
|
+
if (fadeSphere()) afterFade(document.getElementById('stage'), 200, show); else show();
|
|
1673
1673
|
return;
|
|
1674
1674
|
}
|
|
1675
1675
|
orb.play(function (phase) {
|
|
@@ -1992,7 +1992,7 @@ body.waiting .bet { position: absolute; left: 24px; right: 24px; width: auto; to
|
|
|
1992
1992
|
};
|
|
1993
1993
|
if (reduced) {
|
|
1994
1994
|
fadeSphere();
|
|
1995
|
-
|
|
1995
|
+
afterFade(b, 200, function () { off(); orb.settled(); showCard(card, true); bet.busy = false; if (after) after(); });
|
|
1996
1996
|
return;
|
|
1997
1997
|
}
|
|
1998
1998
|
orb.play(function (phase) {
|
|
@@ -2057,7 +2057,7 @@ body.waiting .bet { position: absolute; left: 24px; right: 24px; width: auto; to
|
|
|
2057
2057
|
b.style.minHeight = '';
|
|
2058
2058
|
b.classList.remove('up');
|
|
2059
2059
|
planned('turn', 400);
|
|
2060
|
-
|
|
2060
|
+
afterFade(b, 200, function () { paint(); void b.offsetWidth; b.classList.add('up'); afterFade(b, 200, after); });
|
|
2061
2061
|
return;
|
|
2062
2062
|
}
|
|
2063
2063
|
var from = b.offsetHeight;
|
|
@@ -2199,7 +2199,7 @@ body.waiting .bet { position: absolute; left: 24px; right: 24px; width: auto; to
|
|
|
2199
2199
|
// the card fades up as the lava eases into its spot, or once it is there
|
|
2200
2200
|
var up = false;
|
|
2201
2201
|
var play = function () { orb.play(function (phase) { if (!up && (phase === 'landing' || phase === 'settled')) { up = true; showCard(r.card, true, true); } if (phase === 'settled') bet.busy = false; }, true); };
|
|
2202
|
-
if (fadeSphere())
|
|
2202
|
+
if (fadeSphere()) afterFade(document.getElementById('stage'), 200, play); else play();
|
|
2203
2203
|
}, failed);
|
|
2204
2204
|
}
|
|
2205
2205
|
|
package/package.json
CHANGED