From a0bb28d5eb26dd6abf9f60b477094fd8508c3930 Mon Sep 17 00:00:00 2001 From: adlee-was-taken Date: Sun, 22 Feb 2026 21:00:20 -0500 Subject: [PATCH] Fix opponent swap animation instant shrink on mobile portrait Let overlay card start at deck size and smoothly scale down to opponent card size during the arc, instead of instantly shrinking before animating. Co-Authored-By: Claude Opus 4.6 --- client/app.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/client/app.js b/client/app.js index b771310..c32ff98 100644 --- a/client/app.js +++ b/client/app.js @@ -2807,16 +2807,7 @@ class GolfGame { // Use unified swap animation if (window.cardAnimations) { - // For opponent swaps, size the held card to match the opponent card - // rather than the deck size (default holding rect uses deck dimensions, - // which looks oversized next to small opponent cards on mobile) - const holdingRect = window.cardAnimations.getHoldingRect(); - const heldRect = holdingRect ? { - left: holdingRect.left, - top: holdingRect.top, - width: sourceRect.width, - height: sourceRect.height - } : null; + const heldRect = window.cardAnimations.getHoldingRect(); window.cardAnimations.animateUnifiedSwap( discardCard, // handCardData - card going to discard