I have a set of dropable li elements that accept a draggable icon. The list of elements is in the scrollable div element. I have compiled a simple example here: http://www.nerdydork.com/demos/dragscroll/
I am wondering if there is a way to autoscroll a list of items when dragging and dropping an item. For example, let's say you are somewhere in the middle, for example http://www.nerdydork.com/demos/dragscroll/#j . When you approach the top of the div, it will begin to scroll up, as it approaches the bottom of the div, it will begin to scroll down.
Does anyone know how to do this using jQuery?
UPDATE
I'm getting closer. I created a fixed div on the top and bottom of the container div. When hovering over it, autoscrolling is launched using http://plugins.jquery.com/project/aautoscroll
Now the problem is that when I hang over the bottom area, it messes up my draggable letters. It just seems like a problem with the lower auto scroll area.
To see the error I'm talking about, watch this short video: http://screencast.com/t/JBFWzhPzGfz
Please note that when autoscrolling down, the cursor is NOT above the right letter. Towards the end of the video, you can see that if you hover over the left margin of the list, it somehow resets and seems to work again.
jquery scroll draggable droppable
Dustin
source share