Skip to main content

Search and Top Navigation

#2997 closed enhancement (fixed)

Opened June 12, 2008 07:32PM UTC

Closed July 03, 2008 10:21PM UTC

Last modified July 03, 2008 10:23PM UTC

sortable/ draggable helper as child of overflow element does not follow cursor when overflow element is scrolled

Reported by: peterp Owned by: paul
Priority: minor Milestone: 1.6b
Component: ui.draggable Version: 1.5
Keywords: draggable sortable helper overflow cursor scroll Cc: peterp@saltmind.de
Blocked by: Blocking:
Description

The default helpers for the sortables/ draggables elements are children of an element which is scrollable (overflow: auto;).

When the overflow element is scrolled the helper scrolls away from the cursor. It's position is not updated.

A simple fix that I'm using is to create a custom helper and append it to the body of the document rather than the overflow element. I suppose another solution would be to recalculate the position if the wheel is scrolled.

This was experience using Firefox 2.0.0.14 and Safari 3.1.1 on OS X. I'm uncertain about other browsers.

If you're using the custom helper work around just remember to set the cursorAt property so that the cursor is not above the draggable helper. (You won't be able to scroll otherwise).

cursorAt is not documented for sortables but it works.

Attachments (0)
Change History (3)

Changed June 26, 2008 07:53PM UTC by rdworth comment:1

milestone: 1.51.5.2

Changed July 03, 2008 10:21PM UTC by paul comment:2

resolution: → fixed
status: newclosed

This should be fixed in branch 1.6.

Changed July 03, 2008 10:23PM UTC by paul comment:3

milestone: 1.5.21.6b