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

Okay, so yeah, if it's too expensive to enable generally, but doable fullscreen, we could have a flag of sorts passed to `requestFullscreen()` (which could get a little icky to feature detect, we should make sure that's possible). If we did it that way we'd still have to meet the Pointer Lock requirements of course around sandboxing and such so Pointer Lock would have to be refactored to make some of its algorithms and checks reusable by Fullscreen.

Alternatively, we could keep it separate and make it an argument to the Pointer Lock API that ends up rejecting if you're not fullscreen. That would be a more modest change and not make Fullscreen dependent on Pointer Lock (though the reverse would be true, albeit in a much less invasive way).

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

Received on Monday, 21 August 2017 08:53:52 UTC