vue-fluid-dnd icon indicating copy to clipboard operation
vue-fluid-dnd copied to clipboard

propose to add support for lockAxis

Open topvis opened this issue 7 months ago • 2 comments

smooth-dnd library supports property lockAxis. It locks the movement axis (x for horizontal, y for vertical) of the dragging. other libraries such as VueDraggable (based on SortableJS) don't support lockAxis. It would be nice to have this feature.

topvis avatar Apr 23 '25 12:04 topvis

@carlosjorger Hey, I used your library and found it really great compared to others. However, it would be even better if it had Lock Axis and Placeholder functions. Thanks, and I hope you’ll add these features soon!

tienphamvanvn avatar May 17 '25 15:05 tienphamvanvn

@topvis @tienphamvanvn im planing to add this feature soon

carlosjorger avatar May 18 '25 13:05 carlosjorger

done https://fluid-dnd.netlify.app/svelte/guides/events/mapcoordinates/

carlosjorger avatar May 23 '25 15:05 carlosjorger

done https://fluid-dnd.netlify.app/svelte/guides/events/mapcoordinates/

thank you so much!

tienphamvanvn avatar May 25 '25 05:05 tienphamvanvn

@carlosjorger I tried it and it worked, but I used this package (https://www.npmjs.com/package/vue-fluid-dnd), is it yours? Can you update it? I used it because it’s pretty lightweight, thanks bro!

tienphamvanvn avatar May 25 '25 10:05 tienphamvanvn

"vue-fluid-dnd" was the old name because it was Vue-exclusive. Please switch to the new "fluid-dnd" version, which includes all new features and fewer bugs.

carlosjorger avatar May 25 '25 11:05 carlosjorger