From 7959987ffd7c4ba8f011f0aa6676252a32f71d8c Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Sun, 19 Jul 2020 22:36:43 +0100 Subject: [PATCH] add touchend event to reset button --- script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script.js b/script.js index 7706663..b3fb918 100644 --- a/script.js +++ b/script.js @@ -119,7 +119,8 @@ async function run() { preview.removeAttribute("src"); } - resetButton.addEventListener("click", reset); + resetButton.addEventListener("click", reset); + resetButton.addEventListener("touchend", reset); } run();