Skip to content

Commit

Permalink
fix(OrbitControls): remove document validation
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett committed Aug 10, 2024
1 parent 442de29 commit 0d281ea
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/controls/OrbitControls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0d281ea

Please sign in to comment.