clauderic / react-sortable-hoc

A set of higher-order components to turn any list into an animated, accessible and touch-friendly sortable list✌️
https://clauderic.github.io/react-sortable-hoc/
MIT License
10.83k stars 983 forks source link

lockToContainerEdges breaks sorting animation #815

Open adil-alimbetov opened 3 years ago

adil-alimbetov commented 3 years ago

Sorting animation is broken when using lockToContainerEdges

Codesanbox link -> https://codesandbox.io/s/blazing-cache-cn6tb?file=/src/index.js:828-848

Gif: CleanShot 2021-09-20 at 17 43 04

Dagmawi-Beyene commented 2 years ago

Add lockAxis="y"

bryandidur commented 2 years ago

@Dagmawi-Beyene thanks. It fixes the problem for me. I think this could be better documented in README.