--- title: touchmove slug: Web/API/Document/rouchmove_event translation_of: Web/API/Document/touchmove_event ---
当触点在
触控平面上移动时触发touchmove事件。
Property | Type | Description |
---|---|---|
target {{readonlyInline}} |
EventTarget | The event target (the topmost target in the DOM tree). |
type {{readonlyInline}} |
DOMString | The type of event. |
bubbles {{readonlyInline}} |
Boolean | Whether the event normally bubbles or not. |
cancelable {{readonlyInline}} |
Boolean | Whether the event is cancellable or not. |
view {{readonlyInline}} |
WindowProxy | document.defaultView (window of the document) |
detail {{readonlyInline}} |
long (float) | 0. |
touches {{readonlyInline}} |
TouchList | A list of Touch es for every point of contact currently touching the surface. |
targetTouches {{readonlyInline}} |
TouchList | A list of Touch es for every point of contact that is touching the surface and started on the element that is the target of the current event. |
changedTouches {{readonlyInline}} |
TouchList | A list of Touch es 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 {{readonlyInline}} |
boolean | true if the control key was down when the event was fired. false otherwise. |
shiftKey {{readonlyInline}} |
boolean | true if the shift key was down when the event was fired. false otherwise. |
altKey {{readonlyInline}} |
boolean | true if the alt key was down when the event was fired. false otherwise. |
metaKey {{readonlyInline}} |
boolean | true if the meta key was down when the event was fired. false otherwise. |
这些事件的代码示例在这个页面 Touch events 中均有体现。
{{CompatibilityTable}}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | {{CompatChrome("22.0")}} | {{CompatGeckoDesktop("18.0")}} | {{CompatNo}} | {{CompatNo}} | {{CompatNo}} |
Feature | Android | Android Webview | Chrome for Android | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|---|---|
Basic support | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatGeckoMobile("6.0")}} | {{CompatVersionUnknown}} | 11 | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} |