Canvas has no objects or shapes, it's just a flat image. There are frameworks that implement events, objects and such rendering via canvas, but SVG is better suited to that.<br><br><div class="gmail_quote">2010/11/30 Stefano Gargiulo <span dir="ltr"><<a href="mailto:rastrano@gmail.com">rastrano@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi all,<div><br></div><div>Why canvas objects doesn't implements liteners interfaces?</div><div><br></div><div>I know that's it's possible to implement a global click listener and then use mouse coords to match the clicked object area, but this is not so stright and flexible  (IMHO).</div>

<div><br></div><div>So my question is:</div><div><br></div><div>is it possible to implement  any "universal" code to attach an onclick event to any canvas shape? why do not propose it for be part of standard?</div>

<div><br></div><div>Best regards,</div><div>Stefano</div>
<br>_______________________________________________<br>
Help mailing list<br>
<a href="mailto:Help@lists.whatwg.org">Help@lists.whatwg.org</a><br>
<a href="http://lists.whatwg.org/listinfo.cgi/help-whatwg.org" target="_blank">http://lists.whatwg.org/listinfo.cgi/help-whatwg.org</a><br>
<br></blockquote></div><br>