Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In frameless window mode, double-clicking on an element with data-tauri-drag-region maximizes the window even when window maximization is disabled. #12006

Open
ryusei-48 opened this issue Dec 19, 2024 · 0 comments
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@ryusei-48
Copy link

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

@ryusei-48 ryusei-48 added status: needs triage This issue needs to triage, applied to new issues type: bug labels Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

1 participant