All the examples in that page works for me too in Firefox, Opera and Safari/Chrome.
One thing I noticed is that with Firefox 6.02 one have to initially "mouseout" from the browser area or "blur" the main windows once, then everything works. I am not clear yet why this is happening only in Firefox. I had a look at the code, it seems it can be improved, I already cleaned it up and shortened the code. Maybe not the perfect solution but it's a start and works with the minimal requirements ! -- Diego On Thu, Sep 8, 2011 at 10:12 PM, Patrick Horgan <[email protected]> wrote: > On 09/07/2011 08:21 AM, Diego Perini wrote: >> I have just come across this example on how to handle events from >> shapes rendered on a canvas element. >> >> Seems the basic is working well, maybe you can take some ideas from >> reading the source code. >> >> http://webcodingeasy.com/JS-classes/Emulate-events-on-canvas-objects >> >> Let us know if you get that improved ! > All the examples from that page fail for me with a javascript error: > Error: G[i] is null > Source File: > http://webcodingeasy.com/my_classes/js/canvas_events/canvas_events.packed.js > Line: 14 > > I didn't bother looking any further, thinking that if their examples > don't work from firefox it's probably alpha code. > > Patrick > > -- > To view archived discussions from the original JSMentors Mailman list: > http://www.mail-archive.com/[email protected]/ > > To search via a non-Google archive, visit here: > http://www.mail-archive.com/[email protected]/ > > To unsubscribe from this group, send email to > [email protected] > -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
