Google map : mouseup event not catched by IE7 and IE8 when dropping item

懵懂的女人 提交于 2019-12-02 20:53:02

问题


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



来源:https://stackoverflow.com/questions/11365147/google-map-mouseup-event-not-catched-by-ie7-and-ie8-when-dropping-item

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!