Element: touchmove event
{{APIRef("Touch Events")}}
The touchmove event is fired when one or more touch points are moved along the touch surface.
Syntax
Use the event name in {{domxref("EventTarget/addEventListener", "addEventListener()")}}:
addEventListener("touchmove", (event) => { })
Alternatively, assign to the event handler property of the interface:
ontouchmove = (event) => { }
Event type
A {{domxref("TouchEvent")}}TouchEvent. Inherits from {{domxref("Event")}}Event.
{{InheritanceDiagram("TouchEvent")}}
Examples
Code samples for those events are available on the dedicated page: Touch events.
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
- Touch events
{{domxref("Element/mousemove_event", "mousemove")}}mousemove