Open marcoscaceres opened 4 years ago
Is it related to my issue here #188 ? I think of a proper way to ask user to unlock fullscreen orientation in web
Requesting orientation with fullscreen seems like a nice ergonomic addition.
See relevant WebApps WG TPAC minutes. Some questions around that discussion may be pertinent (FYI @JakeArchibald and @kenchris):
screen.orientation.lock()
and Web Application Manifest's default orientation.Thanks, let's see:
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:
The advantages would be similar to those in #185: