The pointermove event is fired when a pointer changes coordinates, and the pointer has not been canceled by a browser touch-action.
General info
- Specification
- Pointer Events
- Interface
- PointerEvent
- Bubbles
- Yes
- Cancelable
- Yes
- Target
- Document, Element
- Default Action
- Varies: When the pointer is primary, all default actions of mousemoveevent.
Properties
| Property | Type | Description | 
|---|---|---|
| targetRead only | EventTarget | The event target (the topmost target in the DOM tree). | 
| typeRead only | DOMString | The type of event. | 
| bubblesRead only | Boolean | Whether the event normally bubbles or not | 
| cancelableRead only | Boolean | Whether the event is cancellable or not? | 
| viewRead only | WindowProxy | document.defaultView(windowof the document) | 
| detailRead only | long(float) | 0. | 
| pointerIdRead only | long | A unique identifier for the pointer causing the event. | 
| widthRead only | double (float) | The width (magnitude on the X axis), in CSS pixels, of the contact geometry of the pointer. | 
| heightRead only | double (float) | The height (magnitude on the Y axis), in CSS pixels, of the contact geometry of the pointer. | 
| pressureRead only | float | The normalized pressure of the pointer input in the range of 0 to 1, where 0 and 1 represent the minimum and maximum pressure the hardware is capable of detecting, respectively. | 
| tiltXRead only | long (float) | The plane angle (in degrees, in the range of -90 to 90) between the Y-Z plane and the plane containing both the transducer (e.g. pen stylus) axis and the Y axis. | 
| tiltYRead only | long (float) | The plane angle (in degrees, in the range of -90 to 90) between the X-Z plane and the plane containing both the transducer (e.g. pen stylus) axis and the X axis. | 
| pointerTypeRead only | string | Indicates the device type that caused the event. Must be one of the strings mouse,penortouch, or an empty string. | 
| isPrimaryRead only | boolean | Indicates if the pointer represents the primary pointer of this pointer type. | 
Examples
// pointermove event handler
target.addEventListener("pointermove", function(ev) {
  // Process the event
}, false);
Browser compatibility
| Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) | 
|---|---|---|---|---|---|---|
| Basic support | 55.0 | (Yes) | 28.0 (28.0)[1] | 10 | 42 | No support | 
| On disabled form elements | No support | No support | 44.0 (44.0)[2] | No support | No support | ? | 
| Feature | Android | Android Webview | Edge | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile | Chrome for Android | 
|---|---|---|---|---|---|---|---|---|---|
| Basic support | No support | 55.0 | (Yes) | No support | No support | 10 | 42 | No support | 55.0 | 
| On disabled form elements | No support | 58.0 | No support | No support | No support | ? | No support | No support | No support | 
[1] Implemented in bug 822898 behind the preference dom.w3c_pointer_events.enabled, defaulting to false.
[2] Implemented in bug 218093.