#11 - set front view

This commit is contained in:
isUnknown 2024-12-17 16:43:53 +01:00
parent 6967b1aa39
commit f418d79e84

View file

@ -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;
}