Skip to content

Commit 92ece68

Browse files
committed
fix: setting interactiveArea top position (yomotsu#467)
1 parent 79a3537 commit 92ece68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CameraControls.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1557,7 +1557,7 @@ export class CameraControls extends EventDispatcher {
15571557
this._interactiveArea.width = clamp( interactiveArea.width, 0, 1 );
15581558
this._interactiveArea.height = clamp( interactiveArea.height, 0, 1 );
15591559
this._interactiveArea.x = clamp( interactiveArea.x, 0, 1 - this._interactiveArea.width );
1560-
this._interactiveArea.y = clamp( interactiveArea.x, 0, 1 - this._interactiveArea.height );
1560+
this._interactiveArea.y = clamp( interactiveArea.y, 0, 1 - this._interactiveArea.height );
15611561

15621562
}
15631563

0 commit comments

Comments
 (0)