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

Make drag and drop support on the web work #31

Open
fire opened this issue Jan 13, 2025 · 2 comments
Open

Make drag and drop support on the web work #31

fire opened this issue Jan 13, 2025 · 2 comments

Comments

@fire
Copy link
Member

fire commented Jan 13, 2025

dragonhunt02 — Today at 12:53
btw having an exported model explorer on website as demo would be cool

<3

@fire
Copy link
Member Author

fire commented Jan 13, 2025

haz — Today at 13:49
Uh idk godot but on the web you can make a function that takes a dragover event argument and then you can do whatever you want from there.

Then you just attach it to the dom element you want with a ondrag="draghandlerevent(event);"

@dragonhunt02
Copy link
Contributor

dragonhunt02 commented Jan 14, 2025

I tested an exported compatibility web release version with Godot's serve.py
After booting engine, file drag and drop operation seems to work, then it is stuck at loading. Same file works on native linux build.
It could be an environment or engine issue, I don't know.

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