Hi,
I was wondering if anyone knew a good way to make a draggable item
"grabbable" while it's in the revert animation? I have a fairly long
revert duration and it would be nice if the user could prevent the
revert by grabbing the item while it's in transit.
Here's how I declare my draggable:
$('.item').draggable({revert: true, revertDuration: 5000});
Near as I can tell, the problem arises because the "_mouseCapture"
function of ui.draggable has a check for whether the helper exists:
if (this.helper || o.disabled || $(event.target).is('.ui-resizable-
handle'))
return false;
I can't just remove this check because the item will continue to try
to revert. Basically I need a way to cancel the revert? Is there a
way to do this or do I need to start hacking the code?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---