Re: [w3c/screen-orientation] Feature detection of orientation.lock (Issue #206)

Cannot. Blink and Gecko implement window.screen.orientation object
even if Desktop version that is "lock" is unsupported, so it doesn't
work.

-- Makoto


2022年1月31日(月) 16:14 Thomas Steiner ***@***.***>:

> Window.orientation
> <https://developer.mozilla.org/en-US/docs/Web/API/Window/orientation> is
> deprecated. You should instead use Screen.orientation
> <https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation>,
> which you can properly feature-detect via the snippet below:
>
> if ('ScreenOrientation' in window) {
>   // Supported.}
> `
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/w3c/screen-orientation/issues/206#issuecomment-1025443201>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAHLVWVBD4VILBZCD7DWZ4DUYYZGDANCNFSM5NFHUPBQ>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>


-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/screen-orientation/issues/206#issuecomment-1025449229

You are receiving this because you are subscribed to this thread.

Message ID: <w3c/screen-orientation/issues/206/1025449229@github.com>

Received on Monday, 31 January 2022 07:25:18 UTC