Hello, I'm wondering if there's any way to have the onDrag function
execute only when the "snap" happens, for instance:

new Draggable('el', { snap: [50, 50], onDrag: function() {
   # Run this every 50 pixels...
} });

Bonus question: Is there any way to tell what direction the element is
being dragged in (to the top, to the left, etc.)? Thank you!

You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to