-
Bug
-
Resolution: Fixed
-
P3
-
jfx11
-
None
-
linux
The getMouseX, getMouseY functions in GlassRobot.cpp in gtk robot dont consider the HiDPI scale properties .
The coordinates are scaled-up in mouseMove functions for uiScale but the coordinates are not scaled-down in getScaleX, getScaleY functions.
To reproduce the bug, run the test case tests/system/src/test/java/test/robot/javafx/scene/MouseLocationOnScreenTest.java at HiDPI scale >= 1.5 on linux, the test case fails. A debug patch is also attached which fixes the issue. If required, a small test case can be provided to reproduce the issue.
The coordinates are scaled-up in mouseMove functions for uiScale but the coordinates are not scaled-down in getScaleX, getScaleY functions.
To reproduce the bug, run the test case tests/system/src/test/java/test/robot/javafx/scene/MouseLocationOnScreenTest.java at HiDPI scale >= 1.5 on linux, the test case fails. A debug patch is also attached which fixes the issue. If required, a small test case can be provided to reproduce the issue.