RFR: 8345538: Robot.mouseMove doesn't clamp bounds on macOS when trying to move mouse off screen [v4]
Alexey Ivanov
aivanov at openjdk.org
Mon Jan 20 16:35:52 UTC 2025
On Fri, 20 Dec 2024 21:33:54 GMT, Phil Race <prr at openjdk.org> wrote:
> > Off topic: Is _“clamp”_ the right word for limiting mouse cursor coordinates to the virtual screen bounds?
>
> I think so, at least in programming it is used in this way. Did you have another word in mind ?
You're right, it's used this way. I haven't come across such usage before.
I'd use _“limit”_ or _”restrict”_.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22781#issuecomment-2602851719
More information about the client-libs-dev
mailing list