Discussion:
Embedded SVG ondblclick
(too old to reply)
M***@adobeforums.com
2007-01-25 17:32:44 UTC
Permalink
I've embedded and SVG Image in an web page using the embed tag. Now I would like to catch the ondblclick event in the JavaScript of the HTML, however it appears that the event never fires. Am I missing something here? The onmousedown, onmouseover, onmouseout, etc. events all seem to work.

Thanks,
Matt
J***@adobeforums.com
2007-02-07 03:26:17 UTC
Permalink
Use evt.getDetail() function in a onClick handler to determine number of clicks:

function mouseDblClick(evt)
{
if (evt.getDetail() == 2)
{
// Do double-click stuff...
}
}

Loading...