Bug Tracker

Opened 15 years ago

Closed 15 years ago

#3012 closed enhancement (invalid)

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

Reported by: peterp Owned by:
Priority: trivial Milestone: 1.3
Component: event Version: 1.2.6
Keywords: draggable sortable helper overflow cursor scroll Cc: [email protected]
Blocked by: Blocking:


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 and Safari 3.1.1 on OS X. I'm uncertain about other browsers.

Change History (2)

comment:1 Changed 15 years ago by peterp

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.

comment:2 Changed 15 years ago by flesler

Resolution: invalid
Status: newclosed

This belongs to jQuery UI. Please repost this to the UI Bug Tracker. Thanks.

Note: See TracTickets for help on using tickets.