Hello again, this one is a quicky, it's a Sunday and I had myself a beer so... short, simple and useful, here you go
var drag = false;
createDragAndDropFor(container)
function createDragAndDropFor(target){
target.interactive = true;
target.on("mousedown", function(e){
drag = target;
})
target.on("mouseup", function(e){
drag = false;
})
target.on("mousemove", function(e){
if(drag){
drag.position.x += e.data.originalEvent.movementX;
drag.position.y += e.data.originalEvent.movementY;
}
})
}
Cheers!