diff options
Diffstat (limited to 'files/zh-cn/web/api/touch/force/index.html')
| -rw-r--r-- | files/zh-cn/web/api/touch/force/index.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/touch/force/index.html b/files/zh-cn/web/api/touch/force/index.html new file mode 100644 index 0000000000..b902045bcf --- /dev/null +++ b/files/zh-cn/web/api/touch/force/index.html @@ -0,0 +1,28 @@ +--- +title: Touch.force +slug: Web/API/Touch/force +tags: + - touch +translation_of: Web/API/Touch/force +--- +<p>{{ ApiRef() }}</p> +<h3 id="Summary" name="Summary">概述</h3> +<p>返回这个 {{ domxref("Touch") }} 对象对应的手指挤压触摸平面的压力大小, 从0.0(没有压力)到1.0(最大压力)的浮点数.</p> +<h3 id="Syntax" name="Syntax">语法</h3> +<pre class="eval">var <em>force</em> = <em>touchItem</em>.force; +</pre> +<h3 id="Return_Value" name="Return_Value">返回值</h3> +<dl> + <dt> + <code>force</code></dt> + <dd> + 手指挤压触摸平面的压力大小. 从0.0(没有压力)到1.0(设备可识别的最大压力)的浮点数.</dd> +</dl> +<h3 id="Specification" name="Specification">标准定义</h3> +<p><a class="external" href="http://www.w3.org/TR/touch-events/" title="http://www.w3.org/TR/touch-events/">Touch Events Specification</a></p> +<h3 id="相关链接">相关链接</h3> +<ul> + <li>{{ domxref("Touch.radiusX") }}</li> + <li>{{ domxref("Touch.radiusY") }}</li> + <li>{{ domxref("Touch.rotationAngle") }}</li> +</ul> |
