fix(tauri): disable native drag-drop handler for HTML5 DnD

Tauri 2.x intercepts OS drag-drop events by default, which prevents
HTML5 drag-and-drop (file uploads, image drops) from reaching the
WebView.
This commit is contained in:
Erwan Leboucher committed 2026-07-17 18:11:25 +02:00
1 parent d936986244
commit 213b1b8e3a
1 file changed
+2 -1
+2 -1
View File
@@ -29,7 +29,8 @@ pub fn show_or_create_main_window(app: &AppHandle<crate::BrowserEngine>) -> taur
log::info!("Main window not found, creating a new one.");
let builder =
tauri::WebviewWindowBuilder::new(app, MAIN_WINDOW_LABEL, tauri::WebviewUrl::default());
tauri::WebviewWindowBuilder::new(app, MAIN_WINDOW_LABEL, tauri::WebviewUrl::default())
.disable_drag_drop_handler();
#[cfg(desktop)]
let builder = builder