fidget icon indicating copy to clipboard operation
fidget copied to clipboard

[Add Drag and Drop] Question: How do I do drag and drop?

Open moigagoo opened this issue 4 years ago • 1 comments

Hi! I'm loving the idea, thanks a lot!

I'd really like to use Fidget for a small app, but this uploads files, so I need a way to drag and drop files to be uploaded.

I assume I can do the actual uploading with httpPost call, but I can't see a way to do a drag and drop to the app window.

Is that at all possible now?

moigagoo avatar Jun 22 '20 13:06 moigagoo

I don't have a drag and drop API at the moment. Are you making native, js, wasm app?

I would probably need to implement these APIs:

JS: https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API/File_drag_and_drop

Native: https://www.glfw.org/docs/latest/input.html#path_drop

WASM? Probably not possible.

treeform avatar Jun 22 '20 14:06 treeform