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

Regarding the implementation: Cross-platform RTS-like games like HoN have been doing it for years on Windows, macOS and Linux. I agree, security should not be an issue since we already have Pointer Lock. I'd like to think about Fullscreen and Pointer Lock as two separate things, so even if you are already fullscreen and trap the cursor, you can still lock it on another element.

AFAIK, when you tab out, you lose pointer lock which makes sense. It would be nice to automatically re-trap the cursor when you tab back in in this case.

-- 
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-323724600

Received on Monday, 21 August 2017 11:53:18 UTC