- From: Marcos Cáceres <notifications@github.com>
- Date: Fri, 18 Sep 2020 00:55:48 -0700
- To: whatwg/fullscreen <fullscreen@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 18 September 2020 07:56:02 UTC
It might be nice to request a particular orientation when going fullscreen. The Screen Orientation API presupposes a "[pre-lock condition](https://www.w3.org/TR/screen-orientation/#dfn-pre-lock-conditions)", which in practice means "the document must be in fullscreen". Given that precondition, we could most of the Screen Orientation API and just request the allowed orientations when requesting fullscreen: ```JS element.requestFullscreen({ orientation: "landscape" }) ``` The advantages would be similar to those in #185: * orientation lock management is simplified and just tied to fullscreen... user exists full screen, then unlock of the orientation just happens. * prevent user annoyance, like arbitrary switching orientations (which the Screen Orientation API theoretically allows). -- 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/186
Received on Friday, 18 September 2020 07:56:02 UTC