1

I am trying to lock mouse in a website using this tutorial. I understand, that it is still not standardized, but I would like to use it anyway. I think I have done everything as they described. My file is here: http://www.ivank.net/veci/mlock.html

Do you know where is the problem?

4

1 回答 1

1

哦,我解决了。

请求锁的元素,请求时必须有焦点!这里描述了https://dvcs.w3.org/hg/pointerlock/raw-file/tip/index.html#widl-Element-requestPointerLock-void

当您阅读第三方教程而不是阅读官方(尽管未完成)规范时,它会给您带来很多困难。

于 2013-07-11T23:35:58.333 回答