Mouse capture in this document means you want it so when the user clicks and drags on some element that element continues to receive events until the user releases the mouse button even if they drag outside of the element or even outside the window.
- On element
mousedown
add events to document or window formousemove
andmouseup
.