[html5] Canvas onClick event. Why not?
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,
> Help mailing list
> Help at lists.whatwg.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Help