From b8076adfbb2563590b0035df13b331c9cad34874 Mon Sep 17 00:00:00 2001 From: rcoenen <753704+rcoenen@users.noreply.github.com> Date: Tue, 30 Jun 2026 02:50:15 -0400 Subject: [PATCH] fix(desktop): enable image drag-and-drop in the Tauri window MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tauri's dragDropEnabled defaults to true, which makes the native OS file drop intercept and swallow the event so the webview's HTML5 drop handler (useCanvasDrop) never fires — drag-and-drop of images worked in the browser but failed in the desktop app. Set dragDropEnabled: false so the webview receives HTML5 drag/drop natively and the existing web handler works on desktop too. No web-side code changes. Co-authored-by: Claude Opus 4.8 Co-authored-by: Danila Poyarkov --- desktop/tauri.conf.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/desktop/tauri.conf.json b/desktop/tauri.conf.json index f8623eb65..7dd411121 100644 --- a/desktop/tauri.conf.json +++ b/desktop/tauri.conf.json @@ -14,7 +14,8 @@ { "title": "OpenPencil", "width": 1280, - "height": 800 + "height": 800, + "dragDropEnabled": false } ], "security": {