Browse Source

Update ArcballControls.js

Michael Herzog 3 years ago
parent
commit
b053214a8a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/jsm/controls/ArcballControls.js

+ 1 - 1
examples/jsm/controls/ArcballControls.js

@@ -2097,7 +2097,7 @@ class ArcballControls extends Object3D {
 		window.removeEventListener( 'pointerup', this.onPointerUp );
 
 		window.removeEventListener( 'resize', this.onWindowResize );
-		window.addEventListener( 'keydown', this.onKeyDown );
+		window.removeEventListener( 'keydown', this.onKeyDown );
 
 		this.scene.remove( this._gizmos );
 		this.disposeGrid();