releasePointerCapture method
Releases a pointer captured by an element (using the setPointerCapture method).
![]() |
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
