logo

Response

« Return to the main article

You are viewing this page out of context. To see it in the context it is intended please click here.

About This Page

Reply posted by Tanny O'Haley on Wed 30 Apr 2008 in response to Drag-n-Drop Sorting of Documents

Window scrolling when dragging

Currently the code does not allow the user to drag a news item below the bottom
of the browser window if the body is scrolled. To fix that change the code at
the bottom of the page from:


Sortable.create('NewOrder', {onUpdate:updateOrder})


To:


Sortable.create('NewOrder', {scroll:window,onUpdate:updateOrder})


This will allow the window to scroll while the user drags a news item to the
non-visible area of the page.