Closed 1-alex98 closed 3 years ago
OS: windows
This line and other should probably not assume window is on the primary screen
If I put both on 150% it is fine as well
ok this problem is way more complex then i thought. There are screen coordinates and virtual coordinates used by java fx. Converting them on your own is nearly impossible.
Imagine the left screen is 150% that just makes the fsecond screen start at 1280 in virtual space but 1920 in screen coorinates... These kind of things are hell. I foun no funtion to convert them properly.
So how about just asking java fx where the mouse is and the window is instead of windoofs then we get the transforme coordinates and it works flawlessly.
1st screen = FHD + 150% scale 2nd screen = FHD + 100% scale