Hi, Is there a way to attach an event handler to a object drawn on HTML5 Canvas, without tracking the points? Cheers, I
A:
There is not, you can only receive events for the entire element. For a Canvas, you need to handle things like picking and event propagation yourself. If you want to attach event handlers to individual drawn elements, you could think about using SVG instead of Canvas.
wump
2010-05-04 14:56:09