tauri-apps / tauri

Build smaller, faster, and more secure desktop applications with a web frontend.
https://tauri.app
Apache License 2.0
81.74k stars 2.45k forks source link

[bug] [v2] Drag and drop events with `unstable` feature do not fire. #10521

Open bicarlsen opened 1 month ago

bicarlsen commented 1 month ago

Describe the bug

When the unstable feature is enabled, Tauri drag and drop events no longer fire.

Reproduction

  1. Enable the unstable feature of tauri 2.0.0-rc.0.
  2. Listen to drag and drop events.
  3. No events are fired.

Expected behavior

Drag and drop events should be fired.

Full tauri info output

[✔] Environment
    - OS: Pop!_OS 22.4.0 X64
    ✔ webkit2gtk-4.1: 2.44.2
    ✔ rsvg2: 2.52.5
    ✔ rustc: 1.81.0-nightly (f21554f7f 2024-06-08)
    ✔ cargo: 1.81.0-nightly (b1feb75d0 2024-06-07)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: nightly-2024-06-09-x86_64-unknown-linux-gnu (environment override by RUSTUP_TOOLCHAIN)
    - node: 19.9.0
    - npm: 9.6.3

[-] Packages
    - tauri [RUST]: 2.0.0-rc.0
    - tauri-build [RUST]: 2.0.0-rc.0
    - wry [RUST]: 0.41.0
    - tao [RUST]: 0.28.1
    - tauri-cli [RUST]: 2.0.0-rc.1
    - @tauri-apps/api : not installed!
    - @tauri-apps/cli [NPM]: 2.0.0-rc.1

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/

Stack trace

N/A

Additional context

Seems similar to Issue #9973, but occurs with only one webview.

uAtomicBoolean commented 1 month ago

I have the same problem but since I migrated to v2, even with a new blank project. I didn't enable the unstable feature though.
I tested on fedora and macos and both of them aren't working.