JavaScript - How to stop mouse movement

前端 未结 3 509
南旧
南旧 2021-01-23 05:56

No jQuery possible.

How to disable / stop mouse movement with JavaScript?

What to do: If the mouse is being moved to, let\'s say,

3条回答
  •  执笔经年
    2021-01-23 06:55

    The Pointer Lock API might be what you're looking for

    https://developer.mozilla.org/en-US/docs/API/Pointer_Lock_API

提交回复
热议问题