Deutsch | English | Español | Français |
Italiano | 日本語 | 한국어 | Português |
Pусский | 简体中文 | 繁體中文 |
Releases a pointer captured by an element (using the setPointerCapture method).
Note As of Internet Explorer 11, the Microsoft vendor prefixed version of this method (msReleasePointerCapture) is no longer supported and may be removed in a future release. Instead, use the non-prefixed lowercase name, releasePointerCapture, which is better for standards compliance and future compatibility.
![]() |
Syntax
object.releasePointerCapture(pointerId)Parameters
- pointerId [in]
-
Type: Integer
Identifier of the pointer to be released.
Return value
This method does not return a value.
Remarks
Starting with IE11, an element must have capture on a pointer (by using setPointerCapture) in order to be able to release capture on that particular pointer. In Internet Explorer 10, a call to releasePointerCapture on an element releases capture for the specified pointer from whichever element currently has capture.
If the specified pointerId does not match any existing pointers, a DOMException is thrown with the name InvalidPointerId.
See also
- Element
- PointerEvent
- Pointer Events
- Windows Store apps using JavaScript Samples: HTML scrolling, panning and zooming sample
- setPointerCapture