RFR: 8345538: Robot.mouseMove doesn't clamp bounds on macOS when trying to move mouse off screen [v3]
Alexey Ivanov
aivanov at openjdk.org
Fri Dec 20 19:45:35 UTC 2024
On Fri, 20 Dec 2024 19:27:14 GMT, Alisen Chung <achung at openjdk.org> wrote:
> > I wonder if this is even a bug in `Robot`.
>
> I think it makes sense for Robot to clamp mouseMove so that MouseInfo.getPointerInfo() will never return these junk coordinates, but I understand what you mean since the clamping (or updating) could be done in getPointerInfo() instead.
I agree, to some extent, that these two things need to align… it makes perfect sense.
Yet I worry that this current fix could break more scenarios… while fixing one corner case.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22781#issuecomment-2557621378
More information about the client-libs-dev
mailing list