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

{{APIRef("DOM Events")}}

+ +

 

+ +

WheelEvent.deltaZ 只读属性是一个 double 类型值, 声明 Z 轴滚动量以WheelEvent.deltaMode 为单位.

+ +

 

+ +

语法

+ +
var dZ = event.deltaZ;
+ +

例子

+ +
var syntheticEvent = new WheelEvent("syntheticWheel", {"deltaZ": 4, "deltaMode": 0});
+
+console.log(syntheticEvent.deltaZ);
+
+ +

规范

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('DOM3 Events','#widl-WheelEvent-deltaZ','WheelEvent.deltaZ')}}{{Spec2('DOM3 Events')}}Initial definition.
+ +

浏览器兼容性

+ +

{{ CompatibilityTable() }}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support31{{CompatVersionUnknown}}{{ CompatGeckoDesktop("17.0") }}{{ CompatIE("9.0") }} [1]18{{ CompatNo() }}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidEdgeFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
Basic support{{ CompatVersionUnknown() }}{{CompatVersionUnknown}}{{ CompatGeckoMobile("17.0") }}{{ CompatUnknown() }}{{ CompatVersionUnknown() }}{{ CompatNo() }}
+
+ +

[1] IE9 支持一个规范的一个旧版本的草稿, 这里的值的类型是 long 而不是一个 double 类型的值.

+ +

另见

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