Commit 82ce596
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 #71 parent 4dd5877 commit 82ce596
11 files changed
Lines changed: 370 additions & 74 deletions
File tree
- src-tauri
- capabilities
- src
- src
- components
- types
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
0 commit comments