Hello,
I noticed, that in IE 10 when the event ondragover is fired the values of the attributes clientX, clientY, pageX, pageY, dataTransfer.getData are not refreshed when the mouse is moved. It works in all other IEs and even the metro browser acts like expected. Does anyone know how to get the correct values in IE 10?
Example:
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head id="Head1" runat="server"><title></title><script src="./jquery-1.9.1.js"></script><script type="text/javascript"> $(document).ready(function () { $('#log').bind('dragover', function (ev) { $('#log').text(ev.originalEvent.clientX + " | " + ev.originalEvent.clientY + " | " + ev.originalEvent.dataTransfer.getData("Text")); ev.stopPropagation(); ev.preventDefault(); }); }); function drag(ev) { ev.dataTransfer.setData("Text", "MyText"); }</script></head><body><form id="form1" runat="server"><div><div id="log" style="height: 200px; width: 200px; background-color: yellow;"></div><br /><a href="http://www.microsoft.com" draggable="true" ondragstart="drag(event)">Link Link</a></div></form></body></html>
Thanks and greets