Merge pull request 'ui: disable scene rotation' (#4510) from ui-fixes into main

Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4510
This commit is contained in:
hsjobeki
2025-07-28 18:42:14 +00:00

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", () => {