Hi all,
I've applied an experimental patch today to the scripaculous trunk.
Setting the scroll option on Draggables or Sortables to an element
(or an element id)
will attempt to auto-scroll this element when dragging.
See test/functional/dragdrop3_test.html for a demo/usage.
It's modelled after the behaviour in the Mac OS X finder, with
variable scrolling
speed depending on the distance to the scroll element edge.
Also, it's tweakable with the scrollSpeed and scrollSensitivity options.
Note that the exact behaviour and options names might still change,
I'm open
to suggestions on this. Also, it's currently not working for
scrolling the window
(but that should be a trivial addition).
So-- let's test and discuss this... :)
-Thomas
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs