Grabbing a Draggable while it's reverting?

Grabbing a Draggable while it's reverting?


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?