Comments (4)
Looks really interesting...Tauri 1.0...with 2.0 is coming - thanks - I'll definitely give it a go when 2.0 !
Also clarified the initial post - this is dragging between webviews - as it was not entirely clear.
EDIT...managed to get things via JS file drop... ..not ideal but it works.
from tauri.
Webviews don't share the same HTML/JS context and so it is not very trivial to implement cross webview drag and drop. I am not even sure if this is something we want to support by default in tauri. Do you know if electron has something like this?
I know some people used https://github.com/crabnebula-dev/drag-rs to achieve cross window drag and drop but don't have an example at hand.
from tauri.
Ah thanks for the link - I'll have a read...
..not sure if I can access the HTML content of the Webview loading Url::External ( would like to know actually )...
..but what if the drop would give me a reference to the webview HTML content that I selected and dropped ?
( text / image tag and content )
from tauri.
maybe check this example https://github.com/crabnebula-dev/drag-rs/tree/main/examples/tauri-dragout
from tauri.
Related Issues (20)
- [bug] Dragging window causes focus toggling, plus eats mouse event(s) HOT 1
- [feat] ".tauri" folder for mobile plugin prepare initialize
- [bug] npm unsupported URL Type "link:"
- [bug] Cannot center window HOT 1
- [bug] Exclude app_icon (Vec<u8>) from tracing instrumentation (`wry::ipc::handle`)
- [feat] Add maintainer field to Tauri configuration HOT 2
- Github actions build linux and window app error HOT 1
- [bug] Had problem with window API after update Cargo.lock HOT 7
- [bug] Tauri window freezing when using Leptos HOT 1
- [bug] tauri cli dev command rebuild openssl-sys everytime HOT 1
- [bug] Can't use Window.getByLabel() after migrating from tauri 2.0 beta
- RUSTSEC-2023-0071: Marvin Attack: potential key recovery through timing sidechannels
- Github actions build window app error
- [docs] How to use webworkers with Vite? HOT 1
- [bug] Infinite loop in scope::fs::push_pattern
- [bug] Tauri 2 can't change port number HOT 2
- [bug] Using Chinese characters in the `options` parameter of the `invok`e method causes the type returned by `request.body()` to be not `Raw`.
- [bug] [Tauri 2] Snapcraft build fail
- [bug] pnpm create tauri-app broken
- [bug] tauri cli rebuild dependencies every time I save file HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tauri.