correctly dispose of handlers of 3D control

This commit is contained in:
HF 2020-01-31 11:52:05 +01:00
parent ef3572c54e
commit 881ec9386b

View File

@ -173,6 +173,7 @@ class Renderer {
destructor() {
window.addEventListener('resize', this.onWindowResize, false);
this.threeRenderer.dispose();
this.controls.dispose();
const { domElement } = this.threeRenderer;
this.threeRenderer = null;
domElement.remove();