- Home /
How to detect double and single clicks using javascript?
Hi , I am trying to detect if a button is double clicked or single clicked , I have searched for an answer but the code I'm using at the moment always performs the single click code because the double click is made up of two single clicks. Sorry if this is badly worded , any help on the topic is very helpful =) Cheers.
Answer by Graham-Dunnett · Feb 20, 2014 at 09:49 PM
http://docs.unity3d.com/Documentation/ScriptReference/Event-clickCount.html
"use this to differentiate between a single and double clicks"
Sorry I still don't understand , I'm using the code there on that page you linked and it doesn't output anything?
Sorry I still don't understand , I'm using the code there on that page you linked and it doesn't output anything?
Your answer
Follow this Question
Related Questions
Move at mouse click 0 Answers
Mouse Click not detected 1 Answer
Click to destroy object 2 Answers
Detecting a GUI element under the mouse? 1 Answer
How do you check if the object that you want to destroy with a click is the right object? 1 Answer