branchseer / DeskGap

A cross-platform desktop app framework based on Node.js and the system webview
https://deskgap.com/
MIT License
1.83k stars 75 forks source link

Native Drag and Drop with Host #70

Open arnold-graf opened 3 years ago

arnold-graf commented 3 years ago

First off, thanks for this awesome project: it makes exactly the right trade-offs from where I sit. kudos.

A suggestion: Having the ability to drag files out of a DeskGap window would be amazing. Electron implements this (https://www.electronjs.org/docs/tutorial/native-file-drag-drop), albeit somewhat clunkily: it requires you to specify an absolute path to the file as well as an icon; Passing a JS File type, or an ArrayBuffer (maybe even though dragEvent.dataTransfer.setData('fake-mime/type', Buffer)) would be even handier.

What do you think?

andymans commented 3 years ago

This is a good suggestion. +1 As there is a "new" DeskGap currently in dev (a Rust-based version) this may be the place to add this type of enhancement. I'd also go for the idea of a user-suggested features list for this new version. There are a few custom features that could optional via "compiler flags" that would help many devs with enterprise requirements.