javascript - IE10: How to get mouse coordinates on dragover -



javascript - IE10: How to get mouse coordinates on dragover -

in ie 10 when event ondragover fired values of attributes clientx, clienty, pagex, pagey, don't seem refreshed when mouse moved. webkit browsers , firefox accurately updates mouse coordinates.

simple example:

$(document).ready(function () { $('#log').on('dragover', function(e) { $('#log').text(e.originalevent.pagex + " | " + e.originalevent.pagey); }); });

http://jsfiddle.net/kristoffer/kczmg/

is there workaround ie10?

i tried pure js, without jquery, had no success. microsoft ie makes our lives not easy. code can give new idea:

document.getelementbyid("log").addeventlistener("dragover", test, false); function test(e) { document.getelementbyid("log").innerhtml=e.pagex + " | " + e.pagey; }

javascript jquery internet-explorer drag-and-drop

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -