From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../api/deviceorientationevent/gamma/index.html | 98 ++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 files/zh-cn/web/api/deviceorientationevent/gamma/index.html (limited to 'files/zh-cn/web/api/deviceorientationevent/gamma') diff --git a/files/zh-cn/web/api/deviceorientationevent/gamma/index.html b/files/zh-cn/web/api/deviceorientationevent/gamma/index.html new file mode 100644 index 0000000000..6bff9aef20 --- /dev/null +++ b/files/zh-cn/web/api/deviceorientationevent/gamma/index.html @@ -0,0 +1,98 @@ +--- +title: DeviceOrientationEvent.gamma +slug: Web/API/DeviceOrientationEvent/gamma +translation_of: Web/API/DeviceOrientationEvent/gamma +--- +

{{ apiref("Device Orientation Events") }}

+ +

返回设备旋转时Y轴的值;即,多少度,介于之间-9090,通过该装置被接通向左或向右。方向和运动数据解释的细节。

+ +

Syntax

+ +
var gamma = orientationEvent.gamma;
+
+ +

Specifications

+ + + + + + + + + + + + + + + + +
SpecificationStatusComment
设备方向事件{Spec2('Device Orientation')}}Initial specification.
+ +

Browser compatibility

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support7.0{{CompatVersionUnknown}}6 [1]{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidEdgeFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support3.0{{CompatVersionUnknown}}6 [1]{{CompatNo}}{{CompatNo}}4.2
+
+ +

[1]火狐3.6,图4和5支撑mozOrientation而不是标准DeviceOrientationEvent接口

+ +

See also

+ + -- cgit v1.2.3-54-g00ecf