Re: [whatwg/fullscreen] Option to "trap" the cursor inside the fullscreen window (#99)

Having this functionality would be a great step towards more native-like gaming experiences in the browser. I think the functionality is different from Pointer Lock, however perhaps we could re-use existing implementations for preventing the cursor from leaving the currently fullscreen'ed element.
 
When Pointer Lock is requested in "Fullscreen Trap" mode, we could hide the cursor exactly how it behaves nowadays. When Pointer Lock is exited (_programmatically_) it would be great if the cursor trap is still active. This would allow for toggling Pointer Lock on and off (a likely use case for a game).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fullscreen/issues/99#issuecomment-323766446

Received on Monday, 21 August 2017 15:00:00 UTC