Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.
The pointercancel event is fired when the browser concludes the pointer will no longer be able to generate events (for example, when the related device is deactivated).
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, pen or touch, or an empty string.
isPrimaryRead only
boolean
Indicates if the pointer represents the primary pointer of this pointer type.
Examples
// pointercancel event handler
target.addEventListener("pointercancel", function(ev) {
// Process the event
}, false);