Skip to main content

screen_orientation_lock

Function screen_orientation_lock 

Source
pub(crate) fn screen_orientation_lock(
    it: &mut Interp,
    this: Value,
    a: &[Value],
) -> Result<Value, Value>
Expand description

screen.orientation.lock(orientation)(Screen Orientation API。丸ごと 未対応だった)。実際にディスプレイの向きを固定する機構は無いため、 fullscreenElement 等と同じ「要求された値へ type を書き換えるだけ」の 簡略実装。