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