Html 5 mouse click event not working in iOS?

0 votes
103 views
asked Feb 3, 2014 in HTML5 by admin (8,115 points)

Hi all

   Html 5 mouse click event not working in iOS?

     I used the following code to get the mouse clicking evet

        document.addEventListener("mousedown",function(e){ MouseDownEvent(e); });

1 Answer

0 votes
answered Feb 3, 2014 by Html5

HI admin

    document.addEventListener("mousedown",function(e){ MouseDownEvent(e); });

instead of this on use the below code

    canvas.addEventListener("mousedown",function(e){ MouseDownEvent(e); });

...