The drag event/callback receives a ui hash of top and left values
defining where the element will move to. You can modify these values
and the draggable plugin will move the element to that position
instead of the normal position.
$(el).draggable({
drag: function(event, ui) {
// force the top to always be at 100px
ui.top = 100;
}
});
On Sep 19, 5:12 am, snupo <[email protected]> wrote:
> While dragging, is it possible to restrict movement? for instance, to
> only allow drag inside circular area?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---