Opened 12 years ago

Closed 12 years ago

#2960 closed bug (fixed)

Sortable Scroll in overflow div

Reported by: Tim Owned by: paul
Priority: minor Milestone: 1.6b
Component: ui.sortable Version: 1.5rc1
Keywords: sortable overflow Cc:
Blocked by: Blocking:

Description

I have a sortable list in a div set with overflow. When I drag an item down so that it scrolls a ways down, the image that I was dragging separates from the cursor and finally disappears.

Change History (6)

comment:1 Changed 12 years ago by peterp

I have the exact same problem:

I have a div with overflow: auto;

if you take a draggable or sortable and scroll:

  • it appears to remember the old positions of the droppables, so moving the draggable a few pixels below the droppable will fire the droppables hoverClass. (scrolled with the mouse wheel)
  • when scroll:true on a sortable it's able to scroll up, but not down.
  • wether scrolling automatically or with the mouse wheel it doesn't seem to remember the positions of the droppables.

comment:2 in reply to:  1 Changed 12 years ago by peterp

refreshPositions: true, solved this problem.

comment:3 Changed 12 years ago by paul

Status: newaccepted

comment:4 Changed 12 years ago by paul

Priority: majorminor

This is a known limitation - we're working on a fix, in the meantime please use refreshPositions. Also, it won't happen if the scrolling container is also the offset parent (the next positioned element).

comment:5 Changed 12 years ago by rdworth

Milestone: 1.51.5.2

comment:6 Changed 12 years ago by paul

Milestone: 1.5.21.6b
Resolution: fixed
Status: acceptedclosed

Should be fixed in 1.6.

Note: See TracTickets for help on using tickets.