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.39k stars 2.58k forks source link

[bug] Dynamic window created with js randomly freezes itself and other windows on focus or drag #5087

Open mmpneo opened 2 years ago

mmpneo commented 2 years ago

Describe the bug

Video captured on repro repository https://user-images.githubusercontent.com/3977499/187198539-4ffc8ad0-6348-4c9a-8942-f949cbc1f387.mp4

Reproduction

https://github.com/mmpneo/tauri-dynamic-window-freeze

Expected behavior

No response

Platform and versions

Environment › OS: Windows 10.0.19044 X64 › Webview2: 104.0.1293.70 › MSVC:

Packages › @tauri-apps/cli [NPM]: 1.0.5 › @tauri-apps/api [NPM]: 1.0.2 › tauri [RUST]: git+https://github.com/tauri-apps/tauri?branch=dev#ef8ca7b36366c146ac8246aa02ea6f30bc05ca2b (1.0.5), › tauri-build [RUST]: git+https://github.com/tauri-apps/tauri?branch=dev#ef8ca7b36366c146ac8246aa02ea6f30bc05ca2b (1.0.4), › tao [RUST]: 0.13.3, › wry [RUST]: 0.20.2,

App › build-type: bundle › CSP: unset › distDir: ../dist › devPath: http://localhost:1420/ › framework: React

App directory structure ├─ .git ├─ .vscode ├─ .yarn ├─ node_modules ├─ public ├─ src └─ src-tauri

Stack trace

No response

Additional context

No response

Moon1102 commented 2 years ago

@mmpneo I add this .titlebar div{ pointer-events: none; } in inputfield.html, line 39 and feel smoother.

test video

Hope it meets your expectations.

mmpneo commented 2 years ago

@Moon1102 it's definitely smoother , good catch, thank you. freezes still occurs on win10 tho.

amrbashir commented 2 years ago

duplicate of https://github.com/tauri-apps/tauri/issues/4870 , will be fixed in the next release

FabianLars commented 2 years ago

We tested it with tauri's git version

amrbashir commented 2 years ago

my bad, didn't notice that in the Cargo.toml