You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
There's no easy way to handle file drops on specific elements yet. When you're dragging a file, JS events like mousemove stop emitting, so you can't tell where the cursor is (at least for me on macOS).
Describe the solution you'd like
The best solution would be for the native drag-and-drop API to work. Not sure what was preventing that from working?
Alternatively, tauri://file-drop-hover can include the mouse position and be spammed whenever the mouse moves. In JS, you could handle it like this:
Is your feature request related to a problem? Please describe.
There's no easy way to handle file drops on specific elements yet. When you're dragging a file, JS events like
mousemove
stop emitting, so you can't tell where the cursor is (at least for me on macOS).Describe the solution you'd like
The best solution would be for the native drag-and-drop API to work. Not sure what was preventing that from working?
Alternatively,
tauri://file-drop-hover
can include the mouse position and be spammed whenever the mouse moves. In JS, you could handle it like this:The text was updated successfully, but these errors were encountered: