Refactor cameraControls and pointerHandlers, npm update, npm run format

This commit is contained in:
2024-10-02 16:17:34 +02:00
parent f6b6b4b8ea
commit 334ceaa8f3
11 changed files with 171 additions and 200 deletions

View File

@ -250,9 +250,9 @@ function handleMove() {
}
function handleRotate(objectId: string) {
const object = zoneObjects.value.find(obj => obj.id === objectId);
const object = zoneObjects.value.find((obj) => obj.id === objectId)
if (object) {
object.isRotated = !object.isRotated;
object.isRotated = !object.isRotated
}
}