-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
It might be nice to request a particular orientation when going fullscreen. The Screen Orientation API presupposes a "pre-lock condition", 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:
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).
tomayac, fedorsykora and annevk
Metadata
Metadata
Assignees
Labels
No labels