Alfred-Skyblue / vue-draggable-plus

Universal Drag-and-Drop Component Supporting both Vue 3 and Vue 2
https://vue-draggable-plus.pages.dev/en/
MIT License
2.74k stars 105 forks source link

Drag to opposite direction set de element in first or last position #11

Closed JoseLuisRNP closed 1 year ago

JoseLuisRNP commented 1 year ago

In my project, the element is setted in first position, but is the same effect, can we avoid a sort if is moving to opposite direction?

Grabación de pantalla desde 28-04-23 09:08:44.webm

Alfred-Skyblue commented 1 year ago

You can pass the onMove function to return false to prevent this sorting.

JoseLuisRNP commented 1 year ago

got it! thanks for such a quick response.