From 0d281eaddc7487336793cfc866d97f6c9c824f20 Mon Sep 17 00:00:00 2001 From: Cody Bennett Date: Sat, 10 Aug 2024 05:22:54 -0500 Subject: [PATCH] fix(OrbitControls): remove document validation --- src/controls/OrbitControls.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/controls/OrbitControls.ts b/src/controls/OrbitControls.ts index 9bcbe3d..a0d3367 100644 --- a/src/controls/OrbitControls.ts +++ b/src/controls/OrbitControls.ts @@ -396,11 +396,6 @@ class OrbitControls extends EventDispatcher { // https://github.com/mrdoob/three.js/issues/20575 this.connect = (domElement: HTMLElement): void => { - if ((domElement as any) === document) { - console.error( - 'THREE.OrbitControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.', - ) - } scope.domElement = domElement // disables touch scroll // touch-action needs to be defined for pointer events to work on mobile