Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#2997 closed enhancement (fixed)

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: [email protected]
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.

Change History (3)

comment:1 Changed 15 years ago by rdworth

Milestone: 1.51.5.2

comment:2 Changed 15 years ago by paul

Resolution: fixed
Status: newclosed

This should be fixed in branch 1.6.

comment:3 Changed 15 years ago by paul

Milestone: 1.5.21.6b
Note: See TracTickets for help on using tickets.