Open xingrz opened 5 months ago
not work on macos too.
not work on macos too.
Works on my macOS 14.4.1
A heads up -- in v2 the event names have changed. See https://github.com/tauri-apps/tauri/blob/b9a44105165241eacd5aa089b7b8e8c157282673/tooling/api/src/event.ts#L49
Describe the bug
As far as we know, by default, Tauri handles drag-n-drop via its own
tauri://drop
and related events.While in Linux (both Ubuntu 22.04 and 24.04), once a file is dropped onto the window, an
tauri://drag-cancelled
is emitted instead, and the webview is unexpectedly navigated to the dropped file.Reproduction
Link: https://github.com/xingrz/tauri-v2-drag-n-drop
Console
tab. EnablePreserve Log
As its shown in the screenshot below,
tauri://drag-cancelled
is emitted, and the webview is navigated to the file (package.json
) just dropped.Expected behavior
A
tauri://drop
should be emitted. In the above minimal reproduction, size of the dropped file is displayed.Full
tauri info
outputStack trace
No response
Additional context
No response