From 1ae3c01e48648610a9c8dce010bd805acf178b18 Mon Sep 17 00:00:00 2001 From: Tino Koch Date: Wed, 26 Jul 2023 18:42:38 +0200 Subject: [PATCH] feat: changed camera behavior so that the first added camera is always the active one --- playground/src/pages/multiple-cameras.vue | 2 +- src/composables/useCamera/index.ts | 38 ++++++----------------- 2 files changed, 11 insertions(+), 29 deletions(-) diff --git a/playground/src/pages/multiple-cameras.vue b/playground/src/pages/multiple-cameras.vue index aa1b971a7..1409131ca 100644 --- a/playground/src/pages/multiple-cameras.vue +++ b/playground/src/pages/multiple-cameras.vue @@ -22,7 +22,7 @@ watchEffect(() => { activeCameraUuid.value = camera1.value?.uuid }) -const camera3Exists = ref(true) +const camera3Exists = ref(false)