Skip to content

Requesting orientation lock when going fullscreen #186

@marcoscaceres

Description

@marcoscaceres

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions