From 0accd978a7f5df656d5e868bde33ba4eebc499cb Mon Sep 17 00:00:00 2001 From: atyamash Date: Sun, 13 Mar 2022 17:11:40 +0900 Subject: user_input_methods で画面の向きの日本語訳を追加 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/guide/user_input_methods/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/files/ja/web/guide/user_input_methods/index.html b/files/ja/web/guide/user_input_methods/index.html index 045c306b43..72eacc04d7 100644 --- a/files/ja/web/guide/user_input_methods/index.html +++ b/files/ja/web/guide/user_input_methods/index.html @@ -98,14 +98,14 @@ element.addEventListener("touchmove", handleMove, false);

: 全てのチュートリアルとリファレンスは、Pointer Lock API のページを読んでください。

-

画面の回転

+

画面の向き

-

When screen orientation matters for your application, you can read the screen orientation state, be informed when this state changes, and able to lock the screen orientation to a specific state (usually portrait or landscape) through the Screen Orientation API.

+

画面の向きがあなたのアプリケーションの問題である時、Screen Orientation API を通して画面の向きの状態を参照し、状態が変化した時に通知し、そして画面の向きを特定の状態(大抵はポートレートもしくはランドスケープ)に固定することができます。

-

Orientation data can be retrieved through the {{domxref("screen.orientation")}} attribute or through the orientation media feature. When screen.orientation changes, the {{domxref("screen.orientationchange")}} event is fired on the screen object. Locking the screen orientation is made possible by invoking the {{domxref("screen.lockOrientation")}} method, while the {{domxref("screen.unlockOrientation")}} method removes all the previous screen locks that have been set.

+

画面の向きのデータは {{domxref("screen.orientation")}} 属性、または orientation メディア特性を通して取得することができます。screen.orientation が変化した時、{{domxref("screen.orientationchange")}} イベントがスクリーンオブジェクトで発火されます。{{domxref("screen.lockOrientation")}} メソッドを呼ぶことで画面の向きを固定することができます。また、{{domxref("screen.unlockOrientation")}} メソッドはそれまで設定されていた画面のロックを全て解除します。

-

: More information about the Screen Orientation API can be found in Managing screen orientation.

+

: Screen Orientation API についてのより多くの情報は画面の向きの管理で確認することができます。

全画面

@@ -175,7 +175,7 @@ if (elem.requestFullscreen) {