[bug] availableMonitors returns wrong position on macos~
Opened this issue · 0 comments
qzd1989 commented
Describe the bug
Here is my code:
//vue file
import {
availableMonitors
} from "@tauri-apps/api/window";
onMounted(async () => {
const pm = await availableMonitors();
console.log(pm);
});
Reproduction
simple code.
Expected behavior
Is it a bug?
Full tauri info
output
[✔] Environment
- OS: Mac OS 14.6.1 arm64 (X64)
✔ Xcode Command Line Tools: installed
✔ rustc: 1.81.0 (eeb90cda1 2024-09-04)
✔ cargo: 1.81.0 (2dbb1af80 2024-08-20)
✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
✔ Rust toolchain: stable-aarch64-apple-darwin (default)
- node: 22.5.1
- pnpm: 9.6.0
- yarn: 1.22.22
- npm: 10.8.2
[-] Packages
- tauri 🦀: 2.0.0-rc.10
- tauri-build 🦀: 2.0.0-rc.9
- wry 🦀: 0.43.1
- tao 🦀: 0.30.0
- @tauri-apps/api : 2.0.0-rc.4
- @tauri-apps/cli : 2.0.0-rc.13
[-] Plugins
- tauri-plugin-dialog 🦀: 2.0.0-rc.5
- @tauri-apps/plugin-dialog : 2.0.0-rc.1
- tauri-plugin-store 🦀: 2.0.0-rc.3
- @tauri-apps/plugin-store : 2.0.0-rc.1
- tauri-plugin-fs 🦀: 2.0.0-rc.3
- @tauri-apps/plugin-fs : 2.0.0-rc.2
- tauri-plugin-shell 🦀: 2.0.0-rc.3
- @tauri-apps/plugin-shell : 2.0.0-rc.1
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../dist
- devUrl: http://localhost:1420/
- framework: React (Next.js)
- bundler: Vite
Stack trace
No response
Additional context
No response