Skip to content

Commit

Permalink
fix: setting interactiveArea top position (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
yomotsu committed Oct 29, 2023
1 parent 79a3537 commit 92ece68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CameraControls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1557,7 +1557,7 @@ export class CameraControls extends EventDispatcher {
this._interactiveArea.width = clamp( interactiveArea.width, 0, 1 );
this._interactiveArea.height = clamp( interactiveArea.height, 0, 1 );
this._interactiveArea.x = clamp( interactiveArea.x, 0, 1 - this._interactiveArea.width );
this._interactiveArea.y = clamp( interactiveArea.x, 0, 1 - this._interactiveArea.height );
this._interactiveArea.y = clamp( interactiveArea.y, 0, 1 - this._interactiveArea.height );

}

Expand Down

0 comments on commit 92ece68

Please sign in to comment.