Is it possible to cancel a draggable in "drag:" callback?
Hi all!
I want to cancel a draggable in one of its callback functions ("drag:" in this case). Is this possible?
After reading this ticket:
http://dev.jqueryui.com/ticket/4145 i tried this code:
$("#switch a").draggable({ axis: 'x',
drag: function(e, ui){
console.log(ui.position.left);
if(ui.position.left>0){
return false;
}
}
});
But that's not working. Any ideas?
thanks a lot in advance!