What happened?
I had a lot of confusion when I was first learning to use moveByOffset. To fully understand, I did a series of small experiments to understand how the movement around the screen occurs. I now understand that a positive X value moves the mouse to the right of its current position, while a positive Y value moves down.
To make it more clear, I propose adding the following note:
Note that the first argument X specifies to move right when positive, while the second argument Y specifies
to move down when positive. So moveByOffset(30, -10) moves right 30 and up 10 from the current mouse position.
as well as:
Rules:
- positive X moves right
- positive Y moves down.
- negative X moves left.
- negative Y moves up.
What browsers and operating systems are you seeing the problem on?
I was using Chrome latest version, and Mac OS M1.