onclick event is not fired when a shape is under the mouse.

52 views
Skip to first unread message

shaneosullivan

unread,
Jan 17, 2010, 11:46:37 AM1/17/10
to google-excanvas
Hi,

I've attached an onclick event to a <canvas> element, e.g.

<canvas onclick="alert(' onclick fired! ');">

Which works fine in non-IE. It also works in IE with excanvas
normally.

However, I'm simulating drag and drop, where, when the mouse moves
over the canvas a shape is displayed, with the mouse at the center.
In this case, both left and right clicks are ignored. I'm presuming
that there's some VML object between the canvas and the mouse.

Is there something else I can listen to for an onclick event? Other
events, e.g. onmousemove, work just fine.

Thanks

Shane

Reply all
Reply to author
Forward
0 new messages