Hey Johnny,

Johnny a écrit :
> Hi, I have a simple drag and drop interface, I was wondering does
> anyone know how to apply a delay time for a draggable to revert, I want
> them to revert to their original position but after a delay time

There's no such thing in there for now.  The reverteffect function,
which by default triggers a properly-configured Effect.Move, has no
hooks for delaying.

There is room for a rather ugly hack, relying on undocumented parts of
the code, that would involve a global onEnd draggable listener pushing a
delay-creating effect on the /private/ "_draggable" queue, if it's
detecting drag end on your element.  Since the code will trigger revert
after that, and will by default push the Effect.Move on this queue, you
should attain your goal.  But that's going out on a limb:
script.aculo.us might very well implement things otherwise in the future.

-- 
Christophe Porteneuve a.k.a. TDD
"[They] did not know it was impossible, so they did it." --Mark Twain
Email: [EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Ruby on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to