Skip to content

Commit 0d281ea

Browse files
fix(OrbitControls): remove document validation
1 parent 442de29 commit 0d281ea

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/controls/OrbitControls.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -396,11 +396,6 @@ class OrbitControls extends EventDispatcher {
396396

397397
// https://github.com/mrdoob/three.js/issues/20575
398398
this.connect = (domElement: HTMLElement): void => {
399-
if ((domElement as any) === document) {
400-
console.error(
401-
'THREE.OrbitControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.',
402-
)
403-
}
404399
scope.domElement = domElement
405400
// disables touch scroll
406401
// touch-action needs to be defined for pointer events to work on mobile

0 commit comments

Comments
 (0)