Google map : mouseup event not catched by IE7 and

2019-03-03 08:32发布

问题:

I am not able to understand why this fiddle doesn't work well with IE7 and IE8.

The target is to drag a balloon on the map and catch the mouseup event to retrieve the coordinates where the item has been dropped.

The event is fired correctly on all browsers (IE7 and IE8 included) if the user is not dragging a balloon. But, if the user is dragging a balloon, IE7 and IE8 don't catch the event...

Is there someone to understand what is happening?

To test the fiddle : do not click on the map, just drag and drop balloons

Note : IE7 and IE8 have been tested through the IE9 developer options

回答1:

It is fixed. The trick was to place the image in background of a <div> and not use <img> element

http://jsfiddle.net/5cX3t/17/

Have a nice day