diff --git a/src/controls/TrackballControls.ts b/src/controls/TrackballControls.ts index 6cd5b6dd..ee25d9c5 100644 --- a/src/controls/TrackballControls.ts +++ b/src/controls/TrackballControls.ts @@ -72,13 +72,8 @@ class TrackballControls extends EventDispatcher { private startEvent = { type: 'start' } private endEvent = { type: 'end' } - constructor(object: PerspectiveCamera | OrthographicCamera, domElement: HTMLElement) { + constructor(object: PerspectiveCamera | OrthographicCamera, domElement?: HTMLElement) { super() - - if (domElement === undefined) { - console.warn('THREE.TrackballControls: The second parameter "domElement" is now mandatory.') - } - this.object = object // for reset