Tauri data-tauri-drag-region stopped working correctly in tauri 2.x. At least on macOS.
Double clicking the element freezes the app, no action is performed, native stack trace appears.
The same setup works seamlessly in tauri 1.x (1.2.4).
The issue seems to be with handling the __toggleMaximize cmd originated from this call in v2 vs v1.
Reproduction
Crate a new app with latest tauri 2.x tooling on macOS.
Set it up to use "titleBarStyle": "Overlay" and create data-tauri-drag-region element.
Double click the drag element - 💥
Expected behavior
Double clicking data-tauri-drag-region element should maximize/unmaximize window correctly.
Describe the bug
Tauri
data-tauri-drag-region
stopped working correctly in tauri 2.x. At least on macOS. Double clicking the element freezes the app, no action is performed, native stack trace appears.The same setup works seamlessly in tauri 1.x (1.2.4).
The issue seems to be with handling the
__toggleMaximize
cmd originated from this call in v2 vs v1.Reproduction
"titleBarStyle": "Overlay"
and createdata-tauri-drag-region
element.Expected behavior
Double clicking
data-tauri-drag-region
element should maximize/unmaximize window correctly.Platform and versions
Environment › OS: Mac OS 13.2.0 X64 (M1) › Node.js: 18.14.0 › npm: 9.5.0 › pnpm: 7.27.0 › yarn: 3.4.0 › rustup: 1.25.2 › rustc: 1.67.1 › cargo: 1.67.1 › Rust toolchain: stable-aarch64-apple-darwin
Packages › @tauri-apps/cli [NPM]: 2.0.0-alpha.2 › @tauri-apps/api [NPM]: 2.0.0-alpha.0 › tauri [RUST]: 2.0.0-alpha.3, › tauri-build [RUST]: 2.0.0-alpha.1, › tao [RUST]: 0.17.0, › wry [RUST]: 0.26.0,
App › build-type: bundle › CSP: unset › distDir: ../dist › devPath: http://localhost:1420/ › framework: React › bundler: Vite
Stack trace
Additional context
No response