JakeSidSmith / react-reorder

Drag & drop, touch enabled, reorderable / sortable list, React component
https://jakesidsmith.github.io/react-reorder/
MIT License
218 stars 58 forks source link

Cannot sort via touch due to page scroll #73

Closed tmm1 closed 3 years ago

tmm1 commented 7 years ago

The demos work well on mobile devices, but if you remove the fixed height on the container it becomes impossible to reorder. As you drag an item, the entire page scrolls in the opposite direction and the element stays in the same position.

One way to fix this is to set window.ontouchmove = (e) => e.preventDefault() while an item is being dragged.

JakeSidSmith commented 7 years ago

Update: just released 3.0.0-alpha.0 on npm. I'd suggest checking out this version, it should be far more stable than the existing release, fixes a lot of bugs, and adds the ability to drag between lists. :)

See the readme after installation, there's been a considerable change to the interface.

JakeSidSmith commented 3 years ago

Closing due to lack of response.