jQuery Set Mouse Position (not cursor position)

前端 未结 6 2395
伪装坚强ぢ
伪装坚强ぢ 2020-11-28 12:30

I have a link that, when clicked, I would like it to move the position of the mouse to the right (or anywhere within the viewport, for that matter).

in code it would

6条回答
  •  醉梦人生
    2020-11-28 12:54

    You could hide the cursor, and show another one at a different place.

    Good to have when moving around in a maze for example. The cursor looks like it's stopped but you will see it again when you move outside the window.

提交回复
热议问题