Desktop: let HTML5 file drops reach the webview

Tauri v2 intercepts drag-and-drop by default, so the chat's drop overlay
never saw dropped files. Disable its handler on the main window.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-12 17:56:56 -04:00
parent b2f0b9f9f1
commit 3e50aecb96
+2
View File
@@ -146,6 +146,8 @@ pub fn run() {
.title("Simba")
.inner_size(1200.0, 820.0)
.min_inner_size(420.0, 520.0)
// Let HTML5 drag-and-drop reach the webview (file drop in chat).
.disable_drag_drop_handler()
.build()?;
build_tray(app.handle())?;
register_hotkey(app.handle())?;