RFR: 8345538: Robot.mouseMove doesn't clamp bounds on macOS when trying to move mouse off screen [v6]
Alexey Ivanov
aivanov at openjdk.org
Tue Jan 28 19:14:47 UTC 2025
On Mon, 27 Jan 2025 10:03:45 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
> I would like to clarify one point: if the robot moves the mouse off the screen while the actual mouse pointer is on the screen and immediately presses the mouse button, where will the click occur? on or off the screen?
That's a good question… How do we validate it?
Mouse events are usually sent to the window under the mouse cursor, so we create a set windows or a single large window which cover the entire virtual screen and some additional space to accommodate the off-screen location where we will move the mouse cursor to.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22781#issuecomment-2619852452
More information about the client-libs-dev
mailing list