Document.releaseCapture() is deprecated. Use Element.releasePointerCapture() instead. For more help https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture
Document.releaseCapture() está obsoleto. Usa Element.releasePointerCapture() en su lugar. Para más ayuda https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture