tauri-apps / tauri

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

[bug] onDragDropEvent Not Working on Windows 11 #11712

Closed idootop closed 1 week ago

idootop commented 1 week ago

Describe the bug

In the latest version of Tauri + Wry, the onDragDropEvent seems to not work correctly on Windows 11. When attempting to drag a file from the File Explorer into the Tauri window, the file icon on the mouse cursor disappears immediately. Btw, the onDragDropEvent works well on macOS.

Reproduction

Expected behavior

No response

Full tauri info output

[✔] Environment
    - OS: Windows 10.0.22000 aarch64 (X64)
    ✔ WebView2: 130.0.2849.80
    ✔ MSVC: Visual Studio Community 2022
    ✔ rustc: 1.82.0 (f6e511eec 2024-10-15)
    ✔ cargo: 1.82.0 (8f40fc59f 2024-08-21)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-aarch64-pc-windows-msvc (default)
    - node: 20.14.0
    - pnpm: 9.3.0
    - npm: 10.7.0

[-] Packages
    - tauri 🦀: 2.1.1
    - tauri-build 🦀: 2.0.3
    - wry 🦀: 0.47.0
    - tao 🦀: 0.30.7
    - @tauri-apps/api : 2.0.0 (outdated, latest: 2.1.1)
    - @tauri-apps/cli : 2.1.0

[-] Plugins
    - tauri-plugin-shell 🦀: 2.0.2
    - @tauri-apps/plugin-shell : 2.0.0 (outdated, latest: 2.0.1)
    - tauri-plugin-os 🦀: 2.0.1
    - @tauri-apps/plugin-os : 2.0.0

[-] App
    - build-type: bundle
    - CSP: default-src 'self' asset:; img-src 'self' asset: http://asset.localhost blob: data:; connect-src ipc: http://ipc.localhost
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: React
    - bundler: Vite

Stack trace

No response

Additional context

No response