Google Map Bug: map mouseout event will be trigger when you hover your mouse on Zoom Panel, Pan Panel, Imagery Panel etc. Any workaround?

Google Map API v3 fires the mouseout event when you hover your mouse on Zoom Panel, Pan Panel,etc. I think these are part of the map. So, hovering there should not trigger the mouseout event. Here you see this in action,

http://jsfiddle.net/5Zq3T/1/

Any workaround in plain javascript or jquery will be appreciated? Bug Submitted at here.

Upvotes: 0

Views: 1093

Answers (1)

Dr.Molle
Dr.Molle

Reputation: 117354

Use mouseleave instead:

$(map.getDiv()).mouseleave(function(){alert('Mouse Out')});

http://jsfiddle.net/5Zq3T/2/

Upvotes: 1

Related Questions