From 2a7e4aad2fb5797ed5a2b43506d9e1acb7f62b99 Mon Sep 17 00:00:00 2001 From: wgqqqqq Date: Thu, 2 Apr 2026 19:34:40 +0800 Subject: [PATCH] fix(desktop): apply drag-drop webview fix on all platforms --- src/apps/desktop/src/theme.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/apps/desktop/src/theme.rs b/src/apps/desktop/src/theme.rs index f50b6d98..0472280b 100644 --- a/src/apps/desktop/src/theme.rs +++ b/src/apps/desktop/src/theme.rs @@ -259,6 +259,9 @@ pub fn create_main_window(app_handle: &tauri::AppHandle) { .accept_first_mouse(true) .initialization_script(&init_script); + // Keep HTML5 drag-and-drop working inside the webview for desktop UI drag targets. + builder = builder.disable_drag_drop_handler(); + #[cfg(target_os = "macos")] { builder = builder