I want to add a callback for when a draggable item breaks it's containment. I have this function:
function makeDraggable(){
$( ".draggable" ).draggable({ containment: "parent" , grid: [ 25, 25 ] });
}
Is there a simple way to achieve this, without using collision detection? If not, how would I go about doing the collision detection?