mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-20 00:51:17 -08:00
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:
1 file changed
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user