diff --git a/src/components/project/virtual-sample/Interactive360.vue b/src/components/project/virtual-sample/Interactive360.vue index 9a7375c..ea7dcad 100644 --- a/src/components/project/virtual-sample/Interactive360.vue +++ b/src/components/project/virtual-sample/Interactive360.vue @@ -49,7 +49,8 @@ const xMax = computed(() => { ); }); -const currentX = ref(0); +const frontXView = (xMax.value + 1) / 2; +const currentX = ref(frontXView); const currentY = ref(0); const currentFileIndex = computed(() => currentY.value + "_" + currentX.value); const currentFile = computed(() => @@ -121,7 +122,7 @@ function handleVerticalRotation(event) { } function resetView() { - currentX.value = 0; + currentX.value = frontXView; currentY.value = 0; }