w3c / pointerlock

Pointer Lock
https://w3c.github.io/pointerlock/
Other
17 stars 16 forks source link

Clarify how requestPointerLock relies on user activation #67

Closed marcoscaceres closed 2 years ago

marcoscaceres commented 4 years ago

Link to "activation triggering input event" is broken. Not sure what it should link to.

mustaqahmed commented 4 years ago

This should just point to the definition in HTML spec. That definition needs to be fixed but the PointerLock spec shouldn't worry about the details.

marcoscaceres commented 4 years ago

Right, so, I guess the question is, does it use transient or sticky activation? and will it consume the activation?

mustaqahmed commented 4 years ago

Yes, this needs to be clarified. The "engagement gesture" idea essentially makes requestPointerLock() a Transient activation-gated API. I will work on a PR next week.

mustaqahmed commented 2 years ago

This was fixed through https://github.com/w3c/pointerlock/pull/76.