1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-16 10:42:06 -04:00

(frame): Update animation sync w/Dank Popouts

This commit is contained in:
purian23
2026-04-13 20:49:34 -04:00
parent cca0b7957d
commit 7568d5a4e1
3 changed files with 63 additions and 22 deletions

View File

@@ -94,8 +94,16 @@ Singleton {
function setPopoutAnim(claimId, animX, animY) {
if (!hasPopoutOwner(claimId))
return false;
popoutAnimX = animX;
popoutAnimY = animY;
if (animX !== undefined) {
const nextX = Number(animX);
if (!isNaN(nextX) && popoutAnimX !== nextX)
popoutAnimX = nextX;
}
if (animY !== undefined) {
const nextY = Number(animY);
if (!isNaN(nextY) && popoutAnimY !== nextY)
popoutAnimY = nextY;
}
return true;
}