javascript - Get Position of Drag & Drop Element -


i using following code: http://www.html5canvastutorials.com/kineticjs/html5-canvas-drag-and-drop-a-group-with-kineticjs/ drag & drop.

my question is: how can actual position (x,y) of group after being dragged , dropped?

you can use events of kinetic objects - http://www.html5canvastutorials.com/kineticjs/html5-canvas-path-mouseover/ in case - 'dragend'.

group.on('dragend',function(){     console.log(group.getposition()); }); 

example: http://jsfiddle.net/lavrton/xesdz/


Comments

Popular posts from this blog

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -