make hold time a little longer

This commit is contained in:
Neo 2025-03-08 21:34:25 -05:00
parent 38fb7d2ac9
commit 07ddb59e63

View File

@ -100,9 +100,13 @@ export function ActionScreen () {
return
}
if (data.screen == "playing-card") {
setInstruction("Press and hold a card of your choosing")
}
if (data.screen == "picking-card") {
setActionState("picking-card")
setInstruction("Pick the funniest card.")
setInstruction("Press and hold the funniest card.")
setPlayedWhiteCards(new Map(Object.entries(data.cards!)))
return
}
@ -158,7 +162,7 @@ export function ActionScreen () {
sendMessage(ser(createPacket("game.action.playCard", {
cardValue: card
})))
}} holdTime={500} render={(onMouseDown, onMouseUp) => (
}} holdTime={1500} render={(onMouseDown, onMouseUp) => (
<SizableCard onMouseDown={onMouseDown} onMouseUp={onMouseUp} size={"lg"} content={card} color={"white"} />
)} />
))}
@ -172,7 +176,7 @@ export function ActionScreen () {
sendMessage(ser(createPacket("game.action.pickCard", {
uuid: player
})))
}} holdTime={500} render={(onMouseDown, onMouseUp) => (
}} holdTime={1500} render={(onMouseDown, onMouseUp) => (
<SizableCard onMouseDown={onMouseDown} onMouseUp={onMouseUp} size={"lg"}
content={card} color={"white"}/>
)}/>