kanri icon indicating copy to clipboard operation
kanri copied to clipboard

smooth-dnd is unmaintained

Open trobonox opened this issue 3 years ago • 7 comments

For now there seems to be no resulting security vulnerabilities but for the future using an alternative library or the HTML drag & drop API might be needed.

trobonox avatar Nov 26 '22 07:11 trobonox

Possible alternative implementation: https://codepen.io/l-portet/pen/jObbRYJ

trobonox avatar Nov 26 '22 07:11 trobonox

A library which could also be useful for the planned widget panel: https://muuri.dev/

trobonox avatar Nov 26 '22 07:11 trobonox

Another potential option: https://github.com/PuruVJ/neodrag

trobonox avatar Jan 16 '23 12:01 trobonox

The library for Vue 3 seems to be still maintained, it is just the underlying base library which is unmaintained. If the maintainer of the Vue 3 package handles this problem appropriately, it might not be a problem.

trobonox avatar Mar 28 '23 15:03 trobonox

https://drag-and-drop-docs.vercel.app/ this could be a really solid option the replace the current library

trobonox avatar Mar 02 '24 08:03 trobonox

Hi @trobonox I don't know why exactly you don't use HTML drag and drop but if the reason is that it doesn't work on Windows (with WebView2) then you can disable fileDropEnabled in tauri.conf.json -> https://tauri.app/v1/api/config/#windowconfig.filedropenabled (The path will be tauri->windows[0]->fileDropEnabled there are multiple windows but autocomplete should help).

Of course it depends if you use file drop in your app.

jaca1119 avatar Mar 03 '24 20:03 jaca1119

Hi @trobonox I don't know why exactly you don't use HTML drag and drop but if the reason is that it doesn't work on Windows (with WebView2) then you can disable fileDropEnabled in tauri.conf.json -> https://tauri.app/v1/api/config/#windowconfig.filedropenabled (The path will be tauri->windows[0]->fileDropEnabled there are multiple windows but autocomplete should help).

Of course it depends if you use file drop in your app.

Thanks for your suggestion, I did consider using the HTML drag and drop API, but I have very specific needs for the drag and drop interactions. I need it to be sortable and have smooth animations, and it's less effort to use a premade library instead of implementing it manually and "reinventing the wheel".

trobonox avatar Mar 03 '24 21:03 trobonox