Open trobonox opened 1 year ago
Possible alternative implementation: https://codepen.io/l-portet/pen/jObbRYJ
A library which could also be useful for the planned widget panel: https://muuri.dev/
Another potential option: https://github.com/PuruVJ/neodrag
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.
https://drag-and-drop-docs.vercel.app/ this could be a really solid option the replace the current library
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.
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
intauri.conf.json
-> https://tauri.app/v1/api/config/#windowconfig.filedropenabled (The path will betauri->windows[0]->fileDropEnabled
there are multiplewindows
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".
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.