SortableJS / Sortable

Reorderable drag-and-drop lists for modern browsers and touch devices. No jQuery or framework required.
https://sortablejs.github.io/Sortable/
MIT License
29.59k stars 3.7k forks source link

Smart scroll with fixed elements #914

Open izgeorge opened 8 years ago

izgeorge commented 8 years ago

Alright, sorry for the title changes, I was mistaken on what the actual issue was.

Is there any way to implement auto scroll with a fixed nav bar and footer? With both fixed elements, auto scroll only works when hitting the top border, when I remove them, both directions work.

https://github.com/RubaXa/Sortable/issues/304 <-- Related, but I don't want to solve my problem by giving my content a height/scrollbar

Using Chrome.

euglv commented 7 years ago

Here is page that reproduces the problem.

RubaXa commented 7 years ago

Workaround: http://jsbin.com/zitejez/edit?html,css,js,output

#simpleList {
  position: absolute;
  overflow: hidden;
  top: 60px;
  bottom: 35px;
  left: 10px;
  right: 10px;
}