[ts][phaser] Fix SkinsAndAnimationBoundsProvider.

This commit is contained in:
Davide Tantillo 2025-01-27 15:10:25 +01:00
parent 3685fa7e35
commit 8f84f8daa5

View File

@ -149,8 +149,8 @@ export class SkinsAndAnimationBoundsProvider
const bounds = skeleton.getBoundsRect(); const bounds = skeleton.getBoundsRect();
minX = Math.min(minX, bounds.x); minX = Math.min(minX, bounds.x);
minY = Math.min(minY, bounds.y); minY = Math.min(minY, bounds.y);
maxX = Math.max(maxX, minX + bounds.width); maxX = Math.max(maxX, bounds.x + bounds.width);
maxY = Math.max(maxY, minY + bounds.height); maxY = Math.max(maxY, bounds.y + bounds.height);
} }
const bounds = { const bounds = {
x: minX, x: minX,