From 9c5dcd943c8314ea68903e7abf42b8d5ebb9e1c0 Mon Sep 17 00:00:00 2001 From: Meleeman01 Date: Tue, 6 Dec 2022 04:07:06 -0600 Subject: [PATCH] fixes wrong touchevent being removed which causes problems on mobile --- forum/captcha/captcha.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forum/captcha/captcha.js b/forum/captcha/captcha.js index a9f9cbf..cdfe1ba 100644 --- a/forum/captcha/captcha.js +++ b/forum/captcha/captcha.js @@ -156,7 +156,7 @@ function captcha() //the actual captcha 'class' start : function() //runs when canvas is clicked for the first time { document.getElementById("canvas").removeEventListener("click", canvasElement.start); - document.getElementById("canvas").removeEventListener("touchstart", canvasElement.start); + document.getElementById("canvas").removeEventListener("touchend", canvasElement.start); canvasElement.lastUpdate = Date.now(); //initialize data for animation loop intervals.tick = setInterval(canvasElement.update, 34); //start animation loop checkSuccess(true); //tells php to start