Onze vrijwilligers hebben dit artikel nog niet naar het Nederlands vertaald. Doe mee en help de klus te klaren!
U kunt het artikel ook in het English (US) lezen.

The onpointercancel property of the GlobalEventHandlers mixin is an EventHandler that processes pointercancel events.

Syntax

var cancelHandler = targetElement.onpointercancel;

Return value

cancelHandler
The pointercancel event handler for element targetElement.

Example

This example shows two ways to use onpointercancel to handle an element's pointercancel events.

<html>
<script>
function cancelHandler(ev) {
  // Process the pointercancel event
}
function init() {
  var el = document.getElementById('target1');
  el.onpointercancel = cancelHandler;
}
</script>

<body onload="init();">
  <div id="target1"> Touch me ... </div>
  <div id="target2" onpointercancel="cancelHandler(event)"> Touch me ... </div>
</body>
</html>

Specifications

Specification Status Comment
Pointer Events – Level 2
The definition of 'onpointercancel' in that specification.
Working Draft Non-stable version
Pointer Events
The definition of 'onpointercancel' in that specification.
Recommendation Initial definition

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Basic supportChrome Full support 35Edge Full support YesFirefox Full support 59
Full support 59
Full support 29
Disabled
Disabled From version 29: this feature is behind the dom.w3c_pointer_events.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE Full support 11
Full support 11
Full support 10
Alternate Name
Alternate Name Uses the non-standard name: onmspointercancel
Opera ? Safari No support NoWebView Android Full support 37Chrome Android Full support 35Edge Mobile Full support YesFirefox Android Full support 29
Disabled
Full support 29
Disabled
Disabled From version 29: this feature is behind the dom.w3c_pointer_events.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android ? Safari iOS No support NoSamsung Internet Android ?

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
User must explicitly enable this feature.
User must explicitly enable this feature.
Uses a non-standard name.
Uses a non-standard name.

See also

Documentlabels en -medewerkers

Aan deze pagina hebben bijgedragen: mfluehr, fscholz, chrisdavidmills, erikadoyle, jpmedley, rolfedh, Sebastianz, AFBarstow
Laatst bijgewerkt door: mfluehr,