fix(desktop): enable image drag-and-drop in the Tauri window

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 <noreply@anthropic.com>
Co-authored-by: Danila Poyarkov <dev@dannote.net>
This commit is contained in:
rcoenen 2026-06-30 02:50:15 -04:00 committed by GitHub
parent 568cdf91ef
commit b8076adfbb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,7 +14,8 @@
{
"title": "OpenPencil",
"width": 1280,
"height": 800
"height": 800,
"dragDropEnabled": false
}
],
"security": {