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
Post a Comment