Giter Site home page Giter Site logo

Comments (4)

oddpxl avatar oddpxl commented on August 30, 2024 1

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.

amrbashir avatar amrbashir commented on August 30, 2024

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.

oddpxl avatar oddpxl commented on August 30, 2024

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.

amrbashir avatar amrbashir commented on August 30, 2024

maybe check this example https://github.com/crabnebula-dev/drag-rs/tree/main/examples/tauri-dragout

from tauri.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.