madOn wrote:
> Hey Guy,
> I need to implement a Area (Dropable Zone) that contains a dynamic
> number of Dragables... Easy with Script.actulo.us But: I also want
> that the dragables can't get dragged over other Dragables in the Area.
> I think this may be possible with the Snap function?! Do any of you
> Guys have an Idea or allready implemented something like that?  It
> would be nice if you would help me!
>
> Thanks!
Yes, you should be able to do it with a snap function.  You would need 
to test if the mouse x y was within the area of any other draggables by 
looping over all the other draggables with Position.within()
http://prototypejs.org/api/position/within

I'm interested to see the final result

- Ken Snyder

--~--~---------~--~----~------------~-------~--~----~
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