ui: disable scene rotation

This commit is contained in:
Johannes Kirschbauer
2025-07-28 20:38:17 +02:00
parent 1c4469e20c
commit a6a25075f7

View File

@@ -493,9 +493,8 @@ export function CubeScene(props: {
controls = new MapControls(camera, renderer.domElement);
controls.enableDamping = true; // an animation loop is required when either damping or auto-rotation are enabled
// Enable the context menu,
// TODO: disable in production
controls.mouseButtons.RIGHT = null;
controls.enableRotate = false;
controls.minZoom = 1.2;
controls.maxZoom = 3.5;
controls.addEventListener("change", () => {