logo       

Re: [ANN] Snap to grid for Draggables: msg#00089

lang.ruby.rails.spinoffs

Subject: Re: [ANN] Snap to grid for Draggables


On Nov 14, 2005, at 4:17 PM, Thomas Fuchs wrote:

Heya,

Following an idea from Saimon (http://dev.rubyonrails.org/ticket/ 2826) and
Borlum (http://dev.rubyonrails.org/ticket/2583) and possibly others,
script.aculo.us Draggables now sport a new "snap" option that works like this:

snap:25
snap to a 25x25 grid (0,0 is at the elements 0,0 coordinate)
... [snip] ...
With some more tinkering you can implement some pretty advanced
stuff, like basing the snapping/constraint on the current position of
other elements.

Hope you find that useful! Comments are welcome!

Fantastic! Thanks, Thomas!

Duane Johnson
(canadaduane)


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise