setPointerCapture()

A method that sends all further events from one pointer to a chosen element, even if the pointer moves outside it or off the page.

In more detail

It needs the pointerId from the pointer event. Call it on pointerdown when a drag starts so the drag keeps tracking smoothly; the capture ends automatically on pointerup.

Related terms

Taught in

References