Currently, the image map demo click through doesn't work in Firefox..it requires two clicks. I had the need to do a click through and found a method that works in Firefox (as well as Chrome and Edge) to fire a click at a specific x,y:
function clickxy(x, y) {
var ev = new MouseEvent('click', {
'view': window,
'bubbles': true,
'cancelable': true,
'clientX': x,
'clientY': y
});
var el = document.elementFromPoint(x, y);
el.dispatchEvent(ev);
}
This was a variable scope issue and has been fixed in v2.3.3. Please test the updated demo you linked to above (be sure to Shift + F5) and close if it works for you.
Currently, the image map demo click through doesn't work in Firefox..it requires two clicks. I had the need to do a click through and found a method that works in Firefox (as well as Chrome and Edge) to fire a click at a specific x,y: