Update camera pose application in viewport-host.ts

This commit is contained in:
2026-04-02 22:17:21 +02:00
parent 9eaf60f5e6
commit c61b416538

View File

@@ -14,6 +14,7 @@ import {
Mesh,
MeshStandardMaterial,
Object3D,
OrthographicCamera,
Plane,
PerspectiveCamera,
PointLight,
@@ -1442,7 +1443,7 @@ export class ViewportHost {
private orbitCamera(deltaX: number, deltaY: number) {
this.cameraSpherical.theta -= deltaX * ORBIT_ROTATION_SPEED;
this.cameraSpherical.phi -= deltaY * ORBIT_ROTATION_SPEED;
this.applyCameraOrbitPose();
this.applyPerspectiveCameraPose();
}
private panCamera(deltaX: number, deltaY: number) {