From 31067bc168529c5895cbcc9c498de530a267531b Mon Sep 17 00:00:00 2001 From: Resistencia Dev Date: Mon, 8 Dec 2025 20:49:05 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=B4=20Arreglada=20animaci=C3=B3n=20de?= =?UTF-8?q?=20las=20cartas=20-=20La=20carta=20de=20rol=20ahora=20vuelve=20?= =?UTF-8?q?a=20su=20posici=C3=B3n=20al=20soltarla?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/components/GameBoard.tsx | 8 +--- fases.txt | 67 +++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+), 7 deletions(-) create mode 100644 fases.txt diff --git a/client/src/components/GameBoard.tsx b/client/src/components/GameBoard.tsx index e2dd6f1..2304992 100644 --- a/client/src/components/GameBoard.tsx +++ b/client/src/components/GameBoard.tsx @@ -213,15 +213,9 @@ export default function GameBoard({ gameState, currentPlayerId, actions }: GameB drag="y" dragConstraints={{ top: -300, bottom: 0 }} dragElastic={0.2} - onDragEnd={(e, info) => { - // Reducir umbral a -50 para facilitar - if (info.offset.y < -50) { - setRevealCard(true); - } - }} + dragSnapToOrigin={true} whileHover={{ scale: 1.02 }} whileTap={{ scale: 0.98, cursor: 'grabbing' }} - animate={revealCard ? { y: -1000, opacity: 0 } : { y: 0, opacity: 1 }} className="absolute inset-0 w-full h-full rounded-xl overflow-hidden shadow-2xl z-20 cursor-grab active:cursor-grabbing hover:ring-2 hover:ring-white/50 transition-all" >