anish2690 / vue-draggable-next

Vue 3 drag-and-drop component
https://vue-draggable-next.vercel.app
MIT License
505 stars 44 forks source link

reimplement move prop #1

Closed TornadoKirby closed 4 years ago

TornadoKirby commented 4 years ago

hello! on the original vue.draggable library, there is a move property that allows a drag to be cancelled if the provided function returns false. it is implemented here in the original component. this would be very helpful to have access to in this version. however, i realize that the original code used some functionality from vue 2 that isn't present anymore in vue-next, so you've left it stubbed in your code. would it be possible for you to make it at least run the function passed in the prop like it was before (like return onMove(evt, originalEvent);)? thanks for your time!

anish2690 commented 4 years ago

hey, @TornadoKirby added support for move property https://github.com/anish2690/vue-draggable-next/releases/tag/1.0.3