[bug] Awkward dragging window between different dpi/scaling monitors on windows
Closed this issue · 1 comments
ottosson commented
Describe the bug
I just noticed that dragging windows between two monitors with different scaling works very poorly. The window resizes and moves around and you basically have to snap it somewhere to get it over to the other monitor at all. It doesn't seem to make any difference what direction you move it. It still behaves the same. This worked (not perfect, but) much better in v1 of Tauri.
Reproduction
Just run a new tauri 2 project and move between two monitors with different scaling.
Expected behavior
The window should move smoothly between monitors without moving around too much.
Full tauri info
output
[✔] Environment
- OS: Windows 10.0.26100 x86_64 (X64)
✔ WebView2: 131.0.2903.112
✔ MSVC:
- Visual Studio Build Tools 2019
- Visual Studio Professional 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.2.0
- npm: 10.9.1
[-] Packages
- tauri :crab:: 2.1.1
- tauri-build :crab:: 2.0.3
- wry :crab:: 0.47.2
- tao :crab:: 0.30.8
- @tauri-apps/api : 2.1.1
- @tauri-apps/cli : 2.1.0
[-] Plugins
- tauri-plugin-shell :crab:: 2.2.0
- @tauri-apps/plugin-shell : 2.2.0
- tauri-plugin-fs :crab:: 2.2.0
- @tauri-apps/plugin-fs : not installed!
- tauri-plugin-dialog :crab:: 2.2.0
- @tauri-apps/plugin-dialog : 2.2.0
- tauri-plugin-updater :crab:: 2.3.0
- @tauri-apps/plugin-updater : 2.3.0
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../dist
- devUrl: http://localhost:1420/
- framework: React
- bundler: Vite
Stack trace
No response
Additional context
No response