Skip to content

Commit

Permalink
fix: prevent divide-by-zero (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
yomotsu authored Aug 31, 2023
1 parent a1bb369 commit 190c592
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/CameraControls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2992,6 +2992,7 @@ export class CameraControls extends EventDispatcher {

domElement.setAttribute( 'data-camera-controls-version', VERSION );
this._addAllEventListeners( domElement );
this._getClientRect( this._elementRect );

}

Expand Down

0 comments on commit 190c592

Please sign in to comment.