ghamster2 / google-maps-utility-library-v3

Automatically exported from code.google.com/p/google-maps-utility-library-v3
Apache License 2.0
0 stars 0 forks source link

Infobox mouseleave event doesn't work in Chrome #255

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I want the Infobox to close on mouseleave. I've managed to do this with the 
following code:

var markerinfo = new InfoBox({disableAutoPan: true, isHidden: false, pane: 
'floatPane', enableEventPropagation : true});

// addListener to show infobox and set its content with #infobox id on marker 
click here //

google.maps.event.addListener(markerinfo,'domready', function(e){
 google.maps.event.addDomListener(document.getElementById('infobox),'mouseleave', function(marker,content,infobox){
              return function() {
                 infobox.close(map,marker);
              }
       }(marker,content,markerinfo)); 
}); 

This works fine in Firefox and Opera but not in Chrome (26.0.1410.63)

Any leads on how can I fix this or alternative ways to accomplish this?

Version: InfoBox v1.1.12

Browser / Operating System:
Google Chrome

Original issue reported on code.google.com by rerer...@gmail.com on 11 May 2013 at 8:30