diff --git a/src/components/Tetris.tsx b/src/components/Tetris.tsx index f4fa4fc..3331119 100644 --- a/src/components/Tetris.tsx +++ b/src/components/Tetris.tsx @@ -502,8 +502,7 @@ export default function(props: TetrisProps) { }); function registerPlayerAction(action: PlayerAction) { - const current = activeAction(); - if (current !== action) { + if (!actionStack.includes(action)) { actionStack.push(action); newAction = true; repeating = false; @@ -642,7 +641,8 @@ function TetrisControlButton(props: TetrisButtonProps) { )