Jquery Mousdown With Setinterval Endless November 30, 2023 Post a Comment My question is referring onto this question. At the moment I am using this answer, but I still can trick that code, so the clearInterval won't stop. While holding my left mouse buSolution 1: Add clearInterval() to the mousedown event:clicker.mousedown(function() { clearInterval(timeout); timeout = setInterval(function() { clicker.text(count++); }, 500); returnfalse; }); CopyThat will be triggered on the context menu, and it will prevent multiple timers from running at once.Fiddle Share Post a Comment for "Jquery Mousdown With Setinterval Endless"
Post a Comment for "Jquery Mousdown With Setinterval Endless"