Skip to content

Commit 82ce596

Browse files
committed
fix: enable proper image files on drag-and-drop vs pasting base64 text
Replace HTML5 drag API with native file-based drag using tauri-plugin-drag. Screenshots are now written to temp files and dragged as file:// URLs, allowing proper image paste into Slack, browsers, and other apps. Key changes: - Update ScreenshotPreview to use pointer-based drag initiation - Write temp file on popup mount, cleanup on unmount - Cancel auto-dismiss timer when user interacts with popup - Resize popup from 280x200 to 320x220 for better preview - Disable drag-drop handler on popup window to prevent conflicts Fixes #7
1 parent 4dd5877 commit 82ce596

11 files changed

Lines changed: 370 additions & 74 deletions

File tree

package-lock.json

Lines changed: 15 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"tailwindcss": "^3.4.18"
2424
},
2525
"dependencies": {
26+
"@crabnebula/tauri-plugin-drag": "^2.1.0",
2627
"@radix-ui/react-slot": "^1.2.3",
2728
"@tauri-apps/api": "^2.8.0",
2829
"@tauri-apps/plugin-global-shortcut": "^2.3.0",

0 commit comments

Comments
 (0)