Scroll Page While Dragging 'draggable_element'

Hi - I posted this on another list, but received no response, so I'm
trying this one. My apologies to those who have seen this question
twice.

I have two columns, one of draggable elements, the other of
droppable elements. These are used to add items to a particular
collection. (Story :habtm 'Assets')

Column 1 (Assets) Column 2 (Stories)
============== ==============
Draggable 1 Droppable 1
Draggable 2 Droppable 2
... ...
etc.

I need to be able to drag any item from the first column onto any item
in the second column, even when the lists are long and both elements
are not visible on the screen at once, so I need the page to scroll
when I drag an asset to the edge of the browser screen.

I currently use the draggable_element helper on each of the assets,
and drop_receiving_element on each of the stories. What can I do so
that when I want to drag an asset to a story that is off-screen, the
page will scroll until that story comes into view?

Many thanks,
Brandon

Hi,

Hi - I posted this on another list, but received no response,

AFAIK, it is because of the general problem, you have with drag&drag and
scrollable parts ("overflow: scroll" / "overflow: auto")

<a href="http://dev.rubyonrails.org/ticket/5771">Drag draggables outside an
overflow:auto div to an external droppable container</a>

so either you use intensively Javascript or find some workarounds:

<a
href="http://wiki.script.aculo.us/scriptaculous/show/EffectsTreasureChest">overflow:
scroll hack and draggable element substitution</a>

(link doesn't work at the moment, sorry, but hopefully the Patch should give you
some hints)

:wink: