From cbceb5d595af0b2c5d5fd53725134f254e73f2d1 Mon Sep 17 00:00:00 2001 From: Florian Rival Date: Thu, 4 Dec 2025 18:57:15 +0100 Subject: [PATCH] Allow to change the camera elevation more on touchscreens in the 3D editor --- GDJS/Runtime/InGameEditor/InGameEditor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GDJS/Runtime/InGameEditor/InGameEditor.tsx b/GDJS/Runtime/InGameEditor/InGameEditor.tsx index 5fdc52701842..4a473b330f8b 100644 --- a/GDJS/Runtime/InGameEditor/InGameEditor.tsx +++ b/GDJS/Runtime/InGameEditor/InGameEditor.tsx @@ -4442,7 +4442,7 @@ namespace gdjs { if (dy3 !== 0) { const tiltSpeed = 0.2; this.elevationAngle += dy3 * tiltSpeed; - if (this.elevationAngle < 5) this.elevationAngle = 5; + if (this.elevationAngle < -45) this.elevationAngle = -45; if (this.elevationAngle > 175) this.elevationAngle = 175; this._editorCamera.onHasCameraChanged(); }