Locally I can use dragControls.addDragEventListener("selectend", func) by adding // @ts-ignore
When I upload to glitch I am getting a type script error
Uncaught TypeError: Cannot read properties of undefined (reading 'addDragEventListener')
What is the proper way to add event listener to drag controls, when I use the addeventlistener function it doesn't do anything
if(dragControls) {
//dragControls.addDragEventListener("selectend", func) ?
dragControls.addEventListener("selectend", func) ?
}