In frameless window mode, double-clicking on an element with `data-tauri-drag-region` maximizes the window even when window maximization is disabled.
ryusei-48 opened this issue · 2 comments
ryusei-48 commented
Describe the bug
The problem is described in the title.
maximizable(false)` is specified when the window is created. The same applies to window creation using TypeScript from the front side.
tauri::WebviewWindowBuilder::new(
app_, "my-window",
tauri::WebviewUrl::App("src/xxxxxx/index.html".into())
).title("xxxxxxxxxxxx")
.min_inner_size(500.0, 580.0)
.inner_size( config.startup.xxxxxx.width, config.startup.xxxxxxxx.height )
.max_inner_size(800.0, 714.0)
.maximizable(false).decorations(false).accept_first_mouse(true)
.center().always_on_top(true).visible(false)
.build().unwrap();
Jeg har gitt HTML-elementet data-tauri-drag-region
i min egendefinerte nedre tittellinje.
Windows-tasten + pil opp er deaktivert, men dette er et problem fordi vinduet maksimeres når man dobbeltklikker på den egendefinerte tittellinjen med musen.
Reproduction
No response
Expected behavior
No response
Full tauri info
output
[✔] Environment
- OS: Windows 10.0.26100 x86_64 (X64)
✔ WebView2: 131.0.2903.99
✔ MSVC:
- Visual Studio Build Tools 2022
- Visual Studio Community 2022
✔ rustc: 1.83.0 (90b35a623 2024-11-26)
✔ cargo: 1.83.0 (5ffbef321 2024-10-29)
✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
- node: 22.10.0
- pnpm: 9.15.0
- npm: 10.5.2
[-] Packages
- tauri 🦀: 2.1.1
- tauri-build 🦀: 2.0.3
- wry 🦀: 0.47.0
- tao 🦀: 0.30.6
- tauri-cli 🦀: 1.5.10
- @tauri-apps/api : 2.1.1
- @tauri-apps/cli : 2.1.0
[-] Plugins
- tauri-plugin-global-shortcut 🦀: 2.2.0
- @tauri-apps/plugin-global-shortcut : 2.2.0
- tauri-plugin-deep-link 🦀: 2.2.0
- @tauri-apps/plugin-deep-link : not installed!
- tauri-plugin-store 🦀: 2.2.0
- @tauri-apps/plugin-store : 2.2.0
- tauri-plugin-dialog 🦀: 2.2.0
- @tauri-apps/plugin-dialog : 2.2.0
- tauri-plugin-http 🦀: 2.2.0
- @tauri-apps/plugin-http : 2.2.0
- tauri-plugin-process 🦀: 2.2.0
- @tauri-apps/plugin-process : 2.2.0
- tauri-plugin-shell 🦀: 2.2.0
- @tauri-apps/plugin-shell : 2.2.0
- tauri-plugin-stronghold 🦀: 2.2.0
- @tauri-apps/plugin-stronghold : 2.2.0
- tauri-plugin-single-instance 🦀: 2.2.0
- @tauri-apps/plugin-single-instance : not installed!
- tauri-plugin-fs 🦀: 2.2.0
- @tauri-apps/plugin-fs : 2.2.0
[-] App
- build-type: bundle
- CSP: script-src 'self'; style-src 'self' cid: https: 'unsafe-inline'; connect-src 'self' https://google.github.io/magika/model/ https://www.youtube.com/ https://googleads.g.doubleclick.net/ ipc: http://ipc.localhost; frame-src 'self' https://www.youtube.com/embed/; default-src 'self' ipc: http://ipc.localhost; img-src 'self' https: blob: data: asset: http://asset.localhost; worker-src 'self' blob:; style-src-elem 'self' cid: https: 'unsafe-inline'
- frontendDist: ../dist
- devUrl: http://localhost:1420/
- framework: React
- bundler: Vite
Stack trace
No response
Additional context
No response