RFR: 8345538: Robot.mouseMove doesn't clamp bounds on macOS when trying to move mouse off screen [v3]
Phil Race
prr at openjdk.org
Fri Dec 20 21:36:35 UTC 2024
On Fri, 20 Dec 2024 19:42:53 GMT, Alexey Ivanov <aivanov 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.
It is quite possible that we need to figure out what is going on with PointerInfo and fix something there first ..
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22781#issuecomment-2557744566
More information about the client-libs-dev
mailing list