Html – Missing pointerup event in child element after setting pointerCapture on parent
I want to implement a drag effect on an element, so I used setPointerCapture in its pointerdown event handler like this: ele.addEventListener('pointerdown', (e)=>{ e.currentTarget.onpointermove = dosomething() e.currentTarget.setPointerCapture(e.pointerId) }) ele.addEventListener('pointerup', (e)=>{ e.currentTarget.onpointermove = null e.currentTarget.releasePointerCapture(e.pointerId) }) However, I run into problems…