jQuery Set Mouse Position (not cursor position)

前端 未结 6 2411
伪装坚强ぢ
伪装坚强ぢ 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 13:00

    As other users already have mentioned, there isn't any mechanism is Javascript to do that. However, you can disable the mouse and implement a cursor to do what you need. Here is a link that explains how. How to implement a custom cursor.

提交回复
热议问题