You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?