From a4f422240b80b56d57c5132edd23ec99b53d4dbe Mon Sep 17 00:00:00 2001 From: Natan Tezare <153676585+NatanTezare@users.noreply.github.com> Date: Wed, 18 Sep 2024 14:14:57 +0300 Subject: [PATCH] Update game.js --- game.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game.js b/game.js index 4142bb1..56cd9ba 100644 --- a/game.js +++ b/game.js @@ -7,7 +7,7 @@ var userClickedPattern = []; var started = false; var level = 0; -$(document).keypress(function() { +$(document).on("keypress touchstart", function() { if (!started) { $("#level-title").text("Level " + level); nextSequence(); @@ -89,4 +89,4 @@ function startOver(){ started=false; gamePattern=[]; level=0; -} \ No newline at end of file +}