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" >