ontouchmove event

Event indicating that the touch point has moved along the touch surface.

Syntax

HTML Attribute <element ontouchmove = "handler(event)">
Event Property object.ontouchmove = handler;
addEventListener Method object.addEventListener("touchmove", handler, useCapture)

 

Event information

SynchronousNo
BubblesNo
CancelableNo

 

Event handler parameters

handler

Type: Function

Event handler

Standards information

There are no standards that apply here.

Remarks

The ontouchmove event indicates when the user moves a touch point along the touch surface.

The target of this event is the same element on which the touch point started when it was first placed on the surface, even if the touch point has since moved outside the interactive area of the target element.

If the preventDefault method is called on the first ontouchmove event of an active touch point, it will prevent any default action caused by any ontouchmove event associated with the same active touch point, such as scrolling.

Note  The rate at which ontouchmove events fire can vary and can depend on the hardware capabilities of the touch device.
 

See also

Windows
Document
Element

 

 

Show: