touchstart
        
        
          Limited availability
        
        
        
          
                
              
                
              
                
              
        
        
      
      This feature is not Baseline because it does not work in some of the most widely-used browsers.
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
- Interface
- TouchEvent
- Bubbles
- 
Sim 
- Cancelável
- 
Sim 
- Alvo
- 
Documento, Elemento 
- Ação Padrão
- 
undefined (indefinido) 
Propriedades
| Property | Type | Description | 
|---|---|---|
| targetSomente leitura | EventTarget | The event target (the topmost target in the DOM tree). | 
| typeSomente leitura | DOMString | The type of event. | 
| bubblesSomente leitura | Boolean | Whether the event normally bubbles or not. | 
| cancelableSomente leitura | Boolean | Whether the event is cancellable or not. | 
| viewSomente leitura | WindowProxy | document.defaultView(windowof the document) | 
| detailSomente leitura | long (float) | 0. | 
| touchesSomente leitura | TouchList | A list of Touches for every point of contact currently touching the surface. | 
| targetTouchesSomente 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. | 
| changedTouchesSomente 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. | 
| ctrlKeySomente leitura | boolean | trueif the control key was down when the event was fired.falseotherwise. | 
| shiftKeySomente leitura | boolean | trueif the shift key was down when the event was fired.falseotherwise. | 
| altKeySomente leitura | boolean | trueif the alt key was down when the event was fired.falseotherwise. | 
| metaKeySomente leitura | boolean | trueif the meta key was down when the event was fired.falseotherwise. | 
Exemplos
Os códigos de exemplos para este evento estão disponíveis nesta página dedicada: Touch events.
Especificações
| Specification | 
|---|
| Touch Events> # event-touchstart> | 
| Touch Events> # dom-globaleventhandlers-ontouchstart> | 
Compatibilidade com navegadores
Loading…