Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

touchmove

当触点在触控平面上移动时触发touchmove事件。

常规信息

规范
Touch Events
接口
TouchEvent
是否冒泡
Yes
能否取消默认行为
Yes
目标
Document, Element
默认行为

属性

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.

示例

这些事件的代码示例在这个页面 Touch events 中均有体现。

浏览器兼容性

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

相关事件

文档标签和贡献者

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