Open Horsty80 opened 1 year ago
idk about mobile but for desktop you need to disable tauri's own file drop mechanism by setting "fileDropEnabled": false
in your window config. Unfortunately the file drop and native html dnd are mutually exclusive :/
Thanks i will try this config :)
Thanks @FabianLars it's working for Desktop indeed with "fileDropEnabled": false
For mobile isn't working, maybe due to conflict with the scroll behavior i didn't know =/
I will edit my Issue to specify that is only for mobile and tauri alpha V2
Describe the bug
I've implemented Native HTML Drag'N'Drop in a react app with vite and typescript. Is working fine on web, and compiled desktop app but if i compile to mobile app isn't working anymore.
Reproduction
This is a basic repo to reproduce
https://github.com/Horsty80/dnd-app
Only need to clone it, install dependencies and try :
Expected behavior
That Native DragNDrop functionnality are working
Platform and versions
Stack trace
Additional context
Following this tutorial to implemente drag n drop functionnality : https://dev.to/franklin030601/creating-an-app-using-drag-and-drop-with-react-without-libraries--5cg9#6
Live demo here : https://drag-and-drop-react-app.netlify.app/