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

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -