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

So yeah, I think at a minimum, we might need a `supportsLocking` boolean or something, because locking to "any" is still a kind of locking.

The use case being, if you are building a UI that has rotate buttons, it doesn't make sense to enable them or show them if you can't rotate the screen. 

Alternatively (I'm not sure this is better): we could tell user agents to not expose the `.lock()` on platforms they are sure don't support locking at all (e.g., most desktops). 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/screen-orientation/issues/206#issuecomment-1272793888
You are receiving this because you are subscribed to this thread.

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

Received on Monday, 10 October 2022 05:11:21 UTC