Skip to content

Double clicking data-tauri-drag-region ignores window resizable flag. #2314

@nicolaic

Description

@nicolaic

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:

  1. Configure your window to have resizeable as false
  2. Create an HTML element with the data-tauri-drag-region attribute
  3. Double click the HTML element, and the window maximizes

Expected behavior

Because the window is configured to not be resizable, it should not be maximized when double clicking the HTML element with the data-tauri-drag-region attribute.

Platform and Versions (required):

Operating System - Windows, version 10.0.19042 X64
Webview2 - 92.0.902.55

Node.js environment
  Node.js - 14.17.0
  @tauri-apps/cli - 1.0.0-beta.6
  @tauri-apps/api - Not installed

Global packages
  npm - 7.9.0
  yarn - 1.22.10

Rust environment
  rustc - 1.53.0
  cargo - 1.53.0

App directory structure
/.git
/app
/node_modules
/src-tauri

App
  tauri.rs - 1.0.0-beta.5
  build-type - bundle
  CSP - default-src blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'
  distDir - ../app/dist
  devPath - http://localhost:8000

Additional context

While it says @tauri-apps/api is not installed, this is not correct. I've put the code for my frontend in a sub-directory where it is installed.

This portion of core.js seems to be relevant to this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions