这篇翻译不完整。请帮忙从英语翻译这篇文章

当触控点被特定的实现方式打乱时触发 touchcancel 事件(例如, 创建了太多的触控点)。

General info

Specification
Touch Events
Interface
TouchEvent
冒泡
Yes
可取消
No
目录
Document, Element
Default Action
None

Properties

Property Type Description
target 只读 EventTarget The event target (the topmost target in the DOM tree).
type 只读 DOMString The type of event.
bubbles 只读 Boolean Whether the event normally bubbles or not
cancelable 只读 Boolean Whether the event is cancellable or not?
view 只读 WindowProxy document.defaultView (window of the document)
detail 只读 long (float) 0.
touches 只读 TouchList A list of Touches for every point of contact currently touching the surface.
targetTouches 只读 TouchList A list of Touches for every point of contact that is touching the surface and started on the element that is the target of the current event.
changedTouches 只读 TouchList A list of Touches for every point of contact which contributed to the event.
For the touchstart event this must be a list of the touch points that just became active with the current event. For the touchmove event this must be a list of the touch points that have moved since the last event. For the touchend and touchcancel events this must be a list of the touch points that have just been removed from the surface.
ctrlKey 只读 boolean true if the control key was down when the event was fired. false otherwise.
shiftKey 只读 boolean true if the shift key was down when the event was fired. false otherwise.
altKey 只读 boolean true if the alt key was down when the event was fired. false otherwise.
metaKey 只读 boolean true if the meta key was down when the event was fired. false otherwise.

Examples

代码示例在这个页面: Touch events.

Browser compatibility

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 22.0 (Yes) 18.0 (18.0)[1]
52.0 (52.0)[2]
未实现 未实现 未实现
Feature Android Android Webview Chrome for Android Edge Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile
Basic support (Yes) (Yes) (Yes) (Yes) 6.0 (6.0) (Yes) 11 (Yes) (Yes)

[1] Touch events were implemented in Gecko 18.0, but removed again in 24.0 (Firefox 24.0 / Thunderbird 24.0 / SeaMonkey 2.21) on the desktop version of Firefox due to web compatibility issues (bug 888304).

[2] As of Gecko 52.0, touch events support has been fixed and reenabled in Windows desktop platforms.

文档标签和贡献者

 此页面的贡献者: plter
 最后编辑者: plter,