I am currently incorporating three.js into Angular2. The code I am using is quite straightforward, as shown below.
this.webGLRenderer.domElement.addEventListener('mousedown', ()=>this.onMouseDown(<MouseEvent>event), false);
this.webGLRenderer.domElement.removeEventListener('mousedown', ()=>this.onMouseDown(<MouseEvent>event), false);
I have also attempted the following:
this.webGLRenderer.domElement.removeEventListener('mousedown', this.onMouseDown, false);
Despite my efforts, the event on the domelement persists. It appears that while addEventListener functions correctly, removing it does not. Thank you in advance for any assistance.