Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drag & Drop Functionality? #64

Open
lucenta opened this issue Nov 12, 2024 · 5 comments
Open

Drag & Drop Functionality? #64

lucenta opened this issue Nov 12, 2024 · 5 comments

Comments

@lucenta
Copy link

lucenta commented Nov 12, 2024

Is there anyway to add drag & drop functionality from the web GUI to native OS?

I'm using CHOC as the UI for a JUCE application & unfortunately it seems that using a webview overrides any ability to listen to mouse events on the JUCE side, thus negating the ability to handle any drag and drop from JUCE itself.

I'm attempting to drag files (stored locally) from the web view UI to the native OS (i.e folder, DAW, etc.).

Countless forums online left me at a dead end to implementing this on the javascript side. I see electron has this functionality https://www.electronjs.org/docs/latest/tutorial/native-file-drag-drop

Is it possible to implement something similar here?

thanks!

@julianstorer
Copy link
Collaborator

Yes, I'm aware of this, and I also need some drag and drop in my own apps, so will have to take a look at this. Not sure how soon I'll get around to it though.
I think attempting to do it on the webview side is a dead end because of security policies, so it'll have to be a messy native hack in the webview code, unfortunately, and could involve quite a lot of work

@lucenta
Copy link
Author

lucenta commented Nov 13, 2024

Yeah, I ran into a bunch of security policies too unfortunately.

If i was familiar I would try to implement it myself!

Thank you for the reply

@lucenta
Copy link
Author

lucenta commented Dec 3, 2024

Hey Julian! I'm wondering if you have any update here?

@julianstorer
Copy link
Collaborator

Sorry! Still on my roadmap, but haven't had chance to look into it yet

@lucenta
Copy link
Author

lucenta commented Jan 8, 2025

Hello there, sorry to bother again but wondering if you have a timeline for a fix here. ty :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants