From 9d676326e611efec00035ced92e18a73017dcc7d Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Sat, 21 Jan 2023 19:43:24 +0100 Subject: [PATCH] better animation timing --- client/src/lib/game.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/lib/game.svelte b/client/src/lib/game.svelte index 1f16c97..0f8aa80 100644 --- a/client/src/lib/game.svelte +++ b/client/src/lib/game.svelte @@ -181,7 +181,7 @@ var movesShown = false; const duration = 400; - var moveDelayMultiplier = 2; + var moveDelayMultiplier = 1; onMount(() => { let i = setTimeout(() => { @@ -337,7 +337,7 @@ {/if} {#key currentPlayer} -
+
{#if overallState == 1 || !overallState && currentPlayer == 1} @@ -378,7 +378,7 @@ {#if movesShown || innerWidth >= 1024}
movesShown = false} on:keydown={() => movesShown = false} /> -
+
Moves