[html5] Canvas onClick event. Why not?

Ricardo Tomasi ricardobeat at gmail.com
Tue Nov 30 23:43:19 PST 2010


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.

2010/11/30 Stefano Gargiulo <rastrano at gmail.com>

> Hi all,
>
> Why canvas objects doesn't implements liteners interfaces?
>
> 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).
>
> So my question is:
>
> 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?
>
> Best regards,
> Stefano
>
> _______________________________________________
> Help mailing list
> Help at lists.whatwg.org
> http://lists.whatwg.org/listinfo.cgi/help-whatwg.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/help-whatwg.org/attachments/20101201/a35ec07f/attachment-0002.htm>


More information about the Help mailing list