From 92ece6898f483e1f1844616a95ce0e839a48491f Mon Sep 17 00:00:00 2001 From: Akihiro Oyamada Date: Sun, 29 Oct 2023 23:44:26 +0900 Subject: [PATCH] fix: setting interactiveArea top position (#467) --- src/CameraControls.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CameraControls.ts b/src/CameraControls.ts index 21d6666..b3bc57d 100644 --- a/src/CameraControls.ts +++ b/src/CameraControls.ts @@ -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 ); }