MDN wants to learn about developers like you: https://qsurvey.mozilla.com/s3/MDN-dev-survey

O evento touchstart é acionado quando o ponteiro de toque(dedo ou caneta) é aplicado sobre à superfície de toque da tela(toque sobre a tela no elemento alvo).

Info Geral

Especificações
Touch Events
Interface
TouchEvent
Bubbles
Sim
Cancelável
Sim
Alvo
Documento, Elemento
Ação Padrão
undefined (indefinido)

Propriedades

Property Type Description
target Somente leitura EventTarget The event target (the topmost target in the DOM tree).
type Somente leitura DOMString The type of event.
bubbles Somente leitura Boolean Whether the event normally bubbles or not
cancelable Somente leitura Boolean Whether the event is cancellable or not?
view Somente leitura WindowProxy document.defaultView (window of the document)
detail Somente leitura long (float) 0.
touches Somente leitura TouchList A list of Touches for every point of contact currently touching the surface.
targetTouches Somente leitura 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 Somente leitura 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 Somente leitura boolean true if the control key was down when the event was fired. false otherwise.
shiftKey Somente leitura boolean true if the shift key was down when the event was fired. false otherwise.
altKey Somente leitura boolean true if the alt key was down when the event was fired. false otherwise.
metaKey Somente leitura boolean true if the meta key was down when the event was fired. false otherwise.

Exemplos

Os códigos de exemplos para este evento estão disponíveis nesta página dedicada: Touch events.

Compatibilidade de Navegadores

Característica Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Suporte básico 22.0 18.0 (18.0) Não suportado Não suportado Não suportado
Característica Android Android Webview Chrome para Android Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile
Suporte básico (Yes) (Yes) (Yes) 6.0 (6.0) (Yes) 11 (Yes) (Yes)

Eventos Relacionados

Etiquetas do documento e colaboradores

 Colaboradores desta página: ZekDtonik
 Última atualização por: ZekDtonik,