Skip to content

Commit

Permalink
Merge pull request #133 from wetfish/fix/captcha
Browse files Browse the repository at this point in the history
fixes wrong touchevent being removed which causes problems on mobile
  • Loading branch information
itsrachelfish authored Jul 13, 2023
2 parents f6a355c + 91c659e commit cc0f158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wwwroot/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 cc0f158

Please sign in to comment.