diff --git a/src/controls/OrbitControls.ts b/src/controls/OrbitControls.ts index 10260dd4..9e9879c4 100644 --- a/src/controls/OrbitControls.ts +++ b/src/controls/OrbitControls.ts @@ -910,7 +910,7 @@ class OrbitControls extends EventDispatcher { // Pan - left mouse, or arrow keys / touch: one-finger move class MapControls extends OrbitControls { - constructor(object: Camera, domElement: HTMLElement) { + constructor(object: Camera, domElement?: HTMLElement) { super(object, domElement) this.screenSpacePanning = false // pan orthogonal to world-space direction camera.up