Skip to content

Commit

Permalink
fixes wrong touchevent being removed which causes problems on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Meleeman01 committed Dec 6, 2022
1 parent 08564ef commit 9c5dcd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion forum/captcha/captcha.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9c5dcd9

Please sign in to comment.