From 0fcdee7aeb47e7bb2d114322718808264d31ed8a Mon Sep 17 00:00:00 2001
From: Navid Zolghadr Pointer capture is set on an element by calling the Setting Pointer Capture
element.setPointerCapture(pointerId)
method. When this method is invoked, a user agent MUST run the following steps:
pointerId
provided as the method's argument does not match any of the active pointers, then throw a DOMException
with the name NotFoundError
.Element
on which this method is invoked is not connected
([[!DOM4]]), throw an exception with the name InvalidStateError
.Element
on which this method is invoked is not connected
([[!DOM4]]), throw an exception with the name InvalidStateError
.InvalidStateError
.pointerId
, set the pending pointer capture target override to the Element
on which this method was invoked.Implicit Release of Pointer Capture
(see compatibility mouse events),
and if in an implicit release scenario both click
and lostpointercapture
events are fired,
click
SHOULD be fired before lostpointercapture
.
When the pointer capture target override is removed from its ownerDocument
's tree,
+
When the pointer capture target override is no longer connected
([[!DOM4]]),
the pending pointer capture target override and pointer capture target override nodes SHOULD be cleared
and also a PointerEvent named lostpointercapture
corresponding to the captured pointer SHOULD be fired at the document.
When a pointer lock ([[!PointerLock]]) is successfully applied on an element, a user agent MUST run the steps as if the releasePointerCapture() method has been called if any element is set to be captured or pending to be captured.