Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kayhhh/bevy_web_file_drop
Bevy plugin adding better support for drag and drop files in the web.
https://github.com/kayhhh/bevy_web_file_drop
bevy drag-and-drop files web
Last synced: 2 months ago
JSON representation
Bevy plugin adding better support for drag and drop files in the web.
- Host: GitHub
- URL: https://github.com/kayhhh/bevy_web_file_drop
- Owner: kayhhh
- License: apache-2.0
- Created: 2024-01-03T02:51:19.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-08-20T05:00:18.000Z (4 months ago)
- Last Synced: 2024-09-30T02:04:48.635Z (3 months ago)
- Topics: bevy, drag-and-drop, files, web
- Language: Rust
- Homepage: https://crates.io/crates/bevy_web_file_drop
- Size: 379 KB
- Stars: 6
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# bevy_web_file_drop
Bevy plugin adding better support for drag and drop files in the web.
Bevy has built in [drag and drop events](https://docs.rs/bevy/latest/bevy/prelude/enum.FileDragAndDrop.html), but they cause a panic when used in a web build and don't cancel the default browser behavior.
This plugin adds some custom JavaScript glue around the canvas to catch these events and relay them to Bevy.